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

Popular posts from this blog

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -