Skip to content

Instantly share code, notes, and snippets.

@Lejdborg
Created April 26, 2011 09:28
Show Gist options
  • Save Lejdborg/942034 to your computer and use it in GitHub Desktop.
Save Lejdborg/942034 to your computer and use it in GitHub Desktop.
Prevent ugly background and shadows when UIWebView is scrolled too far...
myWebView.backgroundColor = [UIColor clearColor];
id scrollview = [myWebView.subviews objectAtIndex:0];
for (UIView *subview in [scrollview subviews]) {
if ([subview isKindOfClass:[UIImageView class]]) subview.hidden = YES;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment