Created
February 13, 2014 17:55
-
-
Save werelax/8980316 to your computer and use it in GitHub Desktop.
Disable UIWebView Bounce in Phonegap App for iOS (the bad way)
This file contains hidden or 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
| - (void)webViewDidFinishLoad:(UIWebView*)theWebView | |
| { | |
| // Black base color for background matches the native apps | |
| theWebView.backgroundColor = [UIColor blackColor]; | |
| // ADD THIS LINE! | |
| theWebView.scrollView.bounces = NO; | |
| return [super webViewDidFinishLoad:theWebView]; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment