Skip to content

Instantly share code, notes, and snippets.

@alanjrogers
Created October 29, 2010 22:49
Show Gist options
  • Save alanjrogers/654602 to your computer and use it in GitHub Desktop.
Save alanjrogers/654602 to your computer and use it in GitHub Desktop.
Disabling a UIWebView's scroll
- (void)webViewDidFinishLoad:(UIWebView *)webView
{
if (webView.subviews.count > 0)
{
id aView = [webView.subviews objectAtIndex:0];
if ([aView respondsToSelector:@selector(setScrollEnabled:)])
{
((UIScrollView*)aView).scrollEnabled = NO;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment