UIWebView hides the right and bottom scroll bars, removes the black background from the scrolling boundary, and prevents sliding
-(void) WebView: ( UIWebView *) WebView didfailloadwitherror: (nserror *) The following method is implemented in the error method:
For (UIView *_aview in [M_webview subviews]) { if ([_aview Iskindofclass:[uiscrollview class]]) { [( Uiscrollview *) _aview Setshowsverticalscrollindicator:no]; Scroll bar on the right [(Uiscrollview *) _aview Setshowshorizontalscrollindicator:no]; [(Uiscrollview *) _aview setalwaysbouncehorizontal:no];//forbidden to slide left and right //lower side of the scroll bar for (UIView *_inscrollview in _ Aview.subviews) { if ([_inscrollview Iskindofclass:[uiimageview class]]) { _ Inscrollview.hidden = YES; Scroll up and down the border when the Black Picture}}}
Reference: Http://weibo.com/p/23041865aa75b60102uymy?pids=Pl_Official_CardMixFeed__4&feed_filter=1
UIWebView hide the right and bottom scroll bars, remove the black background from the scrolling boundary, and prevent left-swipe