Created
July 27, 2012 15:34
-
-
Save ipodishima/3188708 to your computer and use it in GitHub Desktop.
Remove Shadow on web view
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
// From http://stackoverflow.com/questions/1074320/remove-uiwebview-shadow | |
- (void) removeShadowForWebView:(UIWebView*)webV | |
{ | |
// remove the shadow | |
if ([[webV subviews] count] > 0) | |
{ | |
for (UIView* shadowView in [[[webV subviews] objectAtIndex:0] subviews]) | |
{ | |
if ([shadowView isKindOfClass:[UIImageView class]]) { | |
[shadowView setHidden:YES]; | |
} | |
} | |
// unhide the last view so it is visible again because it has the content | |
[[[[[webV subviews] objectAtIndex:0] subviews] lastObject] setHidden:NO]; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment