Friday, June 17, 2011

Disable UIWebView Scrolling

This will get the UIScrollView in the UIWebView and disable scrolling:

UIView* row = nil;
for(row in webView.subviews){
  if([row isKindOfClass:[UIScrollView class] ]){
    UIScrollView* scrollRow = (UIScrollView*) row;
    scrollRow.scrollEnabled = NO;
    scrollRow.bounces = NO;
  }
}


The  will be rejected as contributors on this blog have experienced:
http://praveenmatanam.wordpress.com/2009/04/03/how-to-disable-uiwebview-from-user-scrolling/

No comments:

Post a Comment