晕死:原来阴影是自带的啊,我还想方设法实现这效果呢(自),这个是教如何去除阴影呢
转载自:http://code4app.com/ios/Transparent-UIWebViews/4f681d656803fa9950000000
http://hi.baidu.com/492437598/item/2a7b0c10f2cc3be05e53b119
- (void) hideGradientBackground:(UIView*)theView
{
for (UIView * subview in theView.subviews)
{
if ([subview isKindOfClass:[UIImageViewclass]])
subview.hidden = YES;
[selfhideGradientBackground:subview];
}
}
- (void)viewDidLoad{
[selfhideGradientBackground:_webView];
}
本文将介绍一种简单的方法来移除UIWebView组件中的默认阴影效果,通过编写一个自定义方法`hideGradientBackground`,该方法遍历并隐藏包含阴影的视图元素,最后在`viewDidLoad`中调用此方法作用于`_webView`,实现UIWebView无阴影显示。
157

被折叠的 条评论
为什么被折叠?



