Quote:
Originally Posted by kornienkos
[[[bioWebView subviews] lastObject] setScrollEnabled:NO];
works for me
|
The javascript is a better and more predictable way to do it, but if you're going to go this route you need to at least make sure it doesn't crash your app if they change something under the hood.
id scrollview = [[bioWebView subviews] lastObject];
if ([(UIScrollView *)scrollview respondsToSelector:@selector(setScrollEnabled

])
{
[(UIScrollView *)scrollview setScrollEnabled:NO];
}