Created
May 17, 2013 02:45
-
-
Save syxc/5596586 to your computer and use it in GitHub Desktop.
How to remove grey shadow on the top UIWebView when overscroll?
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
| for (id subview in webView.subviews) { | |
| if ([[subview class] isSubclassOfClass:[UIScrollView class]]) { | |
| for (UIView *scrollSubview in [subview subviews]) { | |
| if ([[scrollSubview class] isSubclassOfClass:[UIImageView class]]) { | |
| scrollSubview.hidden = YES; | |
| } | |
| } | |
| } | |
| } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
http://stackoverflow.com/a/9244529/1242183
This solution will not be rejected.