Skip to content

Instantly share code, notes, and snippets.

@monjer
Last active December 20, 2015 06:38
Show Gist options
  • Select an option

  • Save monjer/6086716 to your computer and use it in GitHub Desktop.

Select an option

Save monjer/6086716 to your computer and use it in GitHub Desktop.
UIWebView+RemoveShadow
//
// UIWebView+RemoveShadow.h
// Created by manjun.han on 06/06/2013.
/
/**
* IOS6.1-及以下
*/
@interface UIWebView (RemoveShadow)
- (void)removeAllShadow ;
@end
//
// UIWebView+RemoveShadow.h
// Created by manjun.han on 06/06/2013.
//
#import "UIWebView+RemoveShadow.h"
@implementation UIWebView (RemoveShadow)
- (void)removeAllShadow ;
{
UIScrollView *scrollView = self.scrollView;
for (int i = 0; i < scrollView.subviews.count ; i++) {
UIView *view = [scrollView.subviews objectAtIndex:i];
if ([view isKindOfClass:[UIImageView class]]) {
view.hidden = YES ;
}
}
}
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment