1. 程式人生 > >IOS UIWebView去掉邊框的方法

IOS UIWebView去掉邊框的方法

 //去除webview拖動時的邊框陰影

    for (UIView *subView in [webView subviews]) 

    {

        if ([subView isKindOfClass:[UIScrollView class]])

        {

            for (UIView *shadowView in [subView subviews]) 

            {

                if ([shadowView isKindOfClass:[UIImageView class]])

                {

                    shadowView.hidden = YES;

                }

            }

        }

    }