我想停止在webview
中弹跳。如果我在代码中使用以下语句,我的应用程序会在appstore中被拒绝吗?
self.viewController.webView.scrollView.bounces = NO;
谢谢!
最佳答案
if ([[[UIDeice currentDevice] SystemVersion] floatValue] >= 5.0)//iOS>=5.0
{
webView.scrollView.bounces = NO;
}
else//iOS<5.0
{
for (id subview in webView.subviews)
{
if ([[subview class] isSubclassOfClass: [UIScrollView class]])
((UIScrollView *)subview).bounces = NO;
}
}
关于objective-c - 我可以使用webview的scrollview.bounces属性来处理webview滚动吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16766952/