Created
May 22, 2013 01:20
-
-
Save guruguruman/5624589 to your computer and use it in GitHub Desktop.
Disable bouncing on the other hand not disabling zooming and scrolling
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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