Skip to content

Instantly share code, notes, and snippets.

@MattFoley
Created April 25, 2013 15:00
Show Gist options
  • Save MattFoley/5460368 to your computer and use it in GitHub Desktop.
Save MattFoley/5460368 to your computer and use it in GitHub Desktop.
Removing Webview Shadows.
- (void)removeShadows
{
self.opaque = NO;
self.backgroundColor = [UIColor clearColor];
for(UIView *view in self.subviews){
if ([view isKindOfClass:[UIImageView class]]) {
[view removeFromSuperview];
}
if ([view isKindOfClass:[UIScrollView class]]) {
UIScrollView *sView = (UIScrollView *)view;
sView.showsVerticalScrollIndicator = NO;
for (UIView* shadowView in [sView subviews]){
if ([shadowView isKindOfClass:[UIImageView class]]) {
[shadowView setHidden:YES];
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment