标签:
IOS UIWebView去掉滚动条和黑色背景即拖拽后的上下阴影
隐藏滚动条和上下滚动时出边界的后面的黑色的背景
webView.backgroundColor=[UIColor clearColor];
for (UIView *aView in [webView subviews])
{
if ([aView isKindOfClass:[UIScrollView class]])
[(UIScrollView *)aView setShowsVerticalScrollIndicator:NO]; //右侧的滚动条 (水平的类似)
for (UIView *shadowView in aView.subviews)
if ([shadowView isKindOfClass:[UIImageView class]])
shadowView.hidden = YES; //上下滚动出边界时的黑色的图片 也就是拖拽后的上下阴影
}
原文地址:http://www.cnblogs.com/linxiu-0925/p/5070770.html