//iOS 5 及之前
for (id subview in webView.subviews){
if ([[subview class] isSubclassOfClass: [UIScrollView class]]){
((UIScrollView *)subview).bounces = NO;
}
}
//iOS 5 之后
webView.scrollView.bounces = NO;
//iOS 5 及之前
for (id subview in webView.subviews){
if ([[subview class] isSubclassOfClass: [UIScrollView class]]){
((UIScrollView *)subview).bounces = NO;
}
}
//iOS 5 之后
webView.scrollView.bounces = NO;
本文标题:UIWebView禁止拖动效果
本文链接:https://www.haomeiwen.com/subject/rtuodttx.html
网友评论