【发布时间】:2012-11-14 05:32:30
【问题描述】:
我正在使用带有 transitionStyle UIPageViewControllerTransitionStyleScroll 和 navigationOrientation UIPageViewControllerNavigationOrientationVertical 的 UIPageViewController
我在视图上还有一个UIPanGestureRecognizer,我想在平移手势处于活动状态时禁用页面滚动。
我正在尝试在手势开始时设置以下内容:
pageViewController.view.userInteractionEnabled = NO;
这似乎没有效果,或者它似乎偶尔起作用。
我发现的唯一其他方法(可行)是在平移手势运行时将 UIPageViewController 数据源设置为 nil,但是这会在重置数据源时导致巨大的延迟。
【问题讨论】: