Created
August 14, 2013 15:07
-
-
Save tapi/6231951 to your computer and use it in GitHub Desktop.
A little had to get at the gesture recognizers of a UIPageviewControllers paging view
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void)didMoveToParentViewController:(UIViewController *)parent | |
{ | |
[super didMoveToParentViewController:parent]; | |
if ([parent isKindOfClass:[UIPageViewController class]]) { | |
UIScrollView *scrollView; | |
for (UIView *view in parent.view.subviews) { | |
if ([view isKindOfClass:[UIScrollView class]]) { | |
scrollView = (UIScrollView *)view; | |
} | |
} | |
usleep(0); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment