Created
May 21, 2014 14:44
-
-
Save pinda/ae02b5d4a9164bd68a38 to your computer and use it in GitHub Desktop.
UIWebView horizontal scroll
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
// Alter the webview contentsize after loading page | |
- (void)webViewDidFinishLoad:(UIWebView *)webView { | |
// Set the width and height of the content size, in your case the width bigger than the screen width | |
[webView.scrollView setContentSize:CGSizeMake(myWidth, myHeight)]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment