Skip to content

Instantly share code, notes, and snippets.

@mikeyward
Created March 1, 2012 01:08
Show Gist options
  • Select an option

  • Save mikeyward/1946387 to your computer and use it in GitHub Desktop.

Select an option

Save mikeyward/1946387 to your computer and use it in GitHub Desktop.
viewDidAppear in BNRDocumentPageViewController for better page curling (not perfect)
- (void)viewDidAppear:(BOOL)animated
{
UIView *targetView = self.view.superview.superview; // UINavigationTransitionView
targetView.clipsToBounds = NO;
[targetView.superview bringSubviewToFront:targetView];
targetView = targetView.superview; // UILayoutContainerView
targetView.clipsToBounds = NO;
[targetView.superview bringSubviewToFront:targetView];
[super viewDidAppear:animated];
NSLog(@"%@",self.view);
NSLog(@"\n%@",[[[UIApplication sharedApplication] keyWindow] performSelector:@selector(recursiveDescription)]);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment