Skip to content

Instantly share code, notes, and snippets.

@tapi
Created August 14, 2013 15:07
Show Gist options
  • Save tapi/6231951 to your computer and use it in GitHub Desktop.
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
- (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