UIWebView禁止下拉弹跳功能

http://blog.csdn.net/cocoa_geforce/article/details/6731944


for (id subview in tWebView.subviews){
if ([[subview class] isSubclassOfClass:[UIScrollView class]]) {
((UIScrollView *)subview).bounces = NO;

}

}


下面是webview下拉不出黑边的代码

/*
for (UIView* subView in [tWebView subviews]) {
if ([subView isKindOfClass:[UIScrollView class]]) {
for (UIView* shadowView in [subView subviews]) {
if ([shadowView isKindOfClass:[UIImageView class]]) {
[shadowView setHidden:YES];
}
}


}
}
*/
/*for (id subview in tWebView.subviews){
if ([[subview class] isSubclassOfClass:[UIScrollView class]]) {

}
}*/


你可能感兴趣的:(UIWebView)