ios - Using UIPageViewController in UIScrollView -


i have uipageviewcontroller placed in uiscrollview, pageview scrolling in horizontal direction, scrollview in vertical. scrollview works fine, when swipe horizontal in pageview area nothing happend.

uipageviewcontroller in uiscrollview

i tried add every scrollview gesture recognizers requiregesturerecognizertofail gesture recognizers pageview, off scrolling on pageview area:

  uiscrollview sv;       (uiview *view in self.pageviewcontroller.view.subviews) {         if ([view iskindofclass:[uiscrollview class]]) {             sv = (uiscrollview*)view;         }     }     (uigesturerecognizer *gesturerecognizer in sv.gesturerecognizers) {             (uigesturerecognizer *gesturerecognizerforfail in self.scrollview.gesturerecognizers) {                 [gesturerecognizerforfail requiregesturerecognizertofail:gesturerecognizer];             }     } 

the every controllers in pageview works fine, when change them buttons in scrollview, swipe doesn't work.


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -