Skip to content

Instantly share code, notes, and snippets.

@ipodishima
Created July 27, 2012 15:34
Show Gist options
  • Save ipodishima/3188708 to your computer and use it in GitHub Desktop.
Save ipodishima/3188708 to your computer and use it in GitHub Desktop.
Remove Shadow on web view
// 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