1

我有一个应用程序,我在我的应用程序中使用 pageviewcontroller。我的 pageviewcontroller 是滚动类型。我的问题是当我的 pagviewcontroller 是滚动类型时如何禁用手势识别器。

这在 curl 中是可能的,但在滚动中是不可能的。当类型为 curl 时,我的手势识别器数组返回 0。

4

1 回答 1

0

这是不可能的

UIPageViewController.h

// An array of UIGestureRecognizers pre-configured to handle user interaction. Initially attached to a view in the UIPageViewController's hierarchy, they can be placed on an arbitrary view to change the region in which the page view controller will respond to user gestures.
// Only populated if transition style is 'UIPageViewControllerTransitionStylePageCurl'.
@property(nonatomic, readonly) NSArray *gestureRecognizers;

请注意只有在过渡样式为“UIPageViewControllerTransitionStylePageCurl”时才会填充。

在这里,您有一个解决方法 UIPageViewController 在 iOS 6 中不返回手势识别器

于 2013-04-22T09:24:06.303 回答