Created
March 30, 2015 21:03
-
-
Save tangent405/331ec39c9fa15cc3ac88 to your computer and use it in GitHub Desktop.
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
- (void)viewDidLoad { | |
[super viewDidLoad]; | |
NSString *path = [[NSBundle mainBundle] pathForResource:@"myhypeapp" ofType:@"html"]; | |
NSURL *url = [NSURL fileURLWithPath:path]; | |
NSURLRequest *request = [NSURLRequest requestWithURL:url]; | |
[self.webView loadRequest:request]; | |
[self.webView setScalesPageToFit:YES]; | |
[self.webView.scrollView setBounces:NO]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment