//取消右侧,下侧滚动条,去处上下滚动边界的黑色背景 for (UIView *_aView in [myWebView subviews]) { if ([_aView isKindOfClass:[UIScrollView class]]) { [(UIScrollView *)_aView setShowsVerticalScrollIndicator:NO]; //右侧的滚动条 [(UIScrollView *)_aView setShowsHorizontalScrollIndicator:NO]; //下侧的滚动条 for (UIView *_inScrollview in _aView.subviews) { if ([_inScrollview isKindOfClass:[UIImageView class]]) { _inScrollview.hidden = YES; //上下滚动出边界时的黑色的图片 } } } }
禁用UIWebView左右滚动 (2011-09-01 14:5 [(UIScrollView *)[[m_webView subviews] objectAtIndex:0] setBounces:NO];
时间: 2024-10-17 19:49:55