如何去掉UIWebView的黑色背景
闲话少说,直接代码:
@implementation UIWebView (ClearBackground)
//去掉水平滚动条和黑色背景
- (void)clearTheBackgroundColorAndHorizontalScrollIndicator
{
for (UIScrollView *view in self.subviews) {
if ([view isKindOfClass:[UIScrollView class]]) {
[view setShowsHorizontalScrollIndicator:NO];
view.bounces = NO;
}
}
[self setScalesPageToFit:YES];
self.backgroundColor = [UIColor clearColor];
[self setOpaque:NO];
}
@end
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。