1

I have an application where I am using pageviewcontroller in my application. My pageviewcontroller is of type scroll. My problem is how to disable the gesture recogniser when my pagviewcontroller is of type scroll.

This is possible in curl but not in scroll. My gesturerecognizer array is returning 0 when type is curl.

halfer
  • 19,824
  • 17
  • 99
  • 186
Rani
  • 3,333
  • 13
  • 48
  • 89

1 Answers1

0

It's not possible

From 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;

Notice the Only populated if transition style is 'UIPageViewControllerTransitionStylePageCurl'.

Here you have a workaround UIPageViewController returns no Gesture Recognizers in iOS 6

Community
  • 1
  • 1
jcesarmobile
  • 51,328
  • 11
  • 132
  • 176