webview - ios取消右侧,下侧滚动条,去处上下滚动边界的黑色背景
UIWebView * d_intro = [[UIWebView alloc] init]; d_intro.delegate = self; d_intro.dataDetectorTypes = UIDataDetectorTypeLink; //取消右侧,下侧滚动条,去处上下滚动边界的黑色背景 d_intro.backgroundColor=[UIColor clearColor]; for (UIView *_aView in [d_intro 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; //上下滚动出边界时的黑色的图片 } } } } [self.view addSubview:d_intro];
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。