赞
踩
for (id subview in webView.subviews){ //webView是要被禁止滚动和回弹的UIWebView
if ([[subview class] isSubclassOfClass: [UIScrollView class]])
((UIScrollView *)subview).scrollEnabled = NO;
}