Created
April 25, 2013 15:00
-
-
Save MattFoley/5460368 to your computer and use it in GitHub Desktop.
Removing Webview Shadows.
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
- (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