Skip to content

Instantly share code, notes, and snippets.

@wookiee
Created March 1, 2012 01:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wookiee/1946387 to your computer and use it in GitHub Desktop.
Save wookiee/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