Skip to content

Instantly share code, notes, and snippets.

@tangent405
Created March 30, 2015 21:03
Show Gist options
  • Save tangent405/331ec39c9fa15cc3ac88 to your computer and use it in GitHub Desktop.
Save tangent405/331ec39c9fa15cc3ac88 to your computer and use it in GitHub Desktop.
- (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