Created
June 5, 2012 21:01
-
-
Save ljanzik/2877876 to your computer and use it in GitHub Desktop.
Useful Snippets for working with UIWebView
This file contains 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
for (id subView in [webView subviews]) { | |
if ([subView respondsToSelector:@selector(flashScrollIndicators)]) { | |
[subView flashScrollIndicators]; | |
} | |
} |
This file contains 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
for( UIView *view in [self.webView subviews] ) { | |
if( [view isKindOfClass:[UIScrollView class]] ) { | |
for( UIView *innerView in [view subviews] ) { | |
if( [innerView isKindOfClass:[UIImageView class]] ) { | |
innerView.hidden = YES; | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment