ios - Disable Page scrolling in UIPageViewController -
this question has answer here:
i working on app in i'm using uipageviewcontroller. want disable page scrolling not gestures. want draw signature in view contain in uipageviewcontroller.for need disable page scrolling. i've done gesture disable not want.
for (uigesturerecognizer *recognizer in pageviewcontroller.gesturerecognizers) { recognizer.enabled = yes; }
and want of edit button when press page scrolling disable , enable pressing again. body can tell me how possible.
if need disable scrolling in uipageviewcontroller - can return nil in data source methods:
- (uiviewcontroller *)pageviewcontroller:(uipageviewcontroller *)pageviewcontroller viewcontrollerbeforeviewcontroller:(uiviewcontroller *)viewcontroller - (uiviewcontroller *)pageviewcontroller:(uipageviewcontroller *)pageviewcontroller viewcontrollerafterviewcontroller:(uiviewcontroller *)viewcontroller
Comments
Post a Comment