Skip to content

Instantly share code, notes, and snippets.

@guruguruman
Created May 22, 2013 01:20
Show Gist options
  • Save guruguruman/5624589 to your computer and use it in GitHub Desktop.
Save guruguruman/5624589 to your computer and use it in GitHub Desktop.
Disable bouncing on the other hand not disabling zooming and scrolling
UIWebView webView;
for (id subview in webView.subviews ) {
if([subview isKindOfClass: [UIScrollView class]]){
UIScrollView *scrollView = (UIScrollView *)subview;
scrollView.bounces = NO;
scrollView.scrollEnabled = YES;
scrollView.minimumZoomScale = 1.0f;
scrollView.bouncesZoom = NO;
scrollView.alwaysBounceVertical = NO;
scrollView.alwaysBounceHorizontal = NO;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment