Created
February 15, 2015 08:45
-
-
Save saiday/f8d7fe3739e7238e1691 to your computer and use it in GitHub Desktop.
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)findMisbehavingScrollViews | |
| { | |
| UIView *view = [[UIApplication sharedApplication] keyWindow]; | |
| [self findMisbehavingScrollViewsIn:view]; | |
| } | |
| - (void)findMisbehavingScrollViewsIn:(UIView *)view | |
| { | |
| if ([view isKindOfClass:[UIScrollView class]]) | |
| { | |
| NSLog(@"Found UIScrollView: %@", view); | |
| if ([(UIScrollView *)view scrollsToTop]) | |
| { | |
| NSLog(@"scrollsToTop = YES!"); | |
| } | |
| } | |
| for (UIView *subview in [view subviews]) | |
| { | |
| [self findMisbehavingScrollViewsIn:subview]; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment