Skip to content

Instantly share code, notes, and snippets.

@dalmaer
Created October 19, 2011 19:38
Show Gist options
  • Save dalmaer/1299422 to your computer and use it in GitHub Desktop.
Save dalmaer/1299422 to your computer and use it in GitHub Desktop.
// Remove the image views that cause shadow on the overscroll
// Based on: http://stackoverflow.com/questions/1074320/remove-uiwebview-shadow
NSArray *subViews = [webView subviews];
if ([subViews count] > 0) {
for (UIView* aView in [[subViews objectAtIndex:0] subviews]) {
if ([aView isKindOfClass:[UIImageView class]]) {
[aView setHidden:YES];
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment