Created
February 3, 2014 15:43
-
-
Save PDMackinnon/8786229 to your computer and use it in GitHub Desktop.
load local web page - in viewDidLoad
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
NSString *path = [[NSBundle mainBundle] pathForResource:@"<#index#>" ofType:@"<#html#>" inDirectory:@"<#www#>"]; | |
NSURL *fileURL = [NSURL fileURLWithPath:path]; | |
NSURLRequest *request = [NSURLRequest requestWithURL:fileURL]; | |
NSLog(@"%@",fileURL); | |
[self.mainWebView loadRequest:request]; | |
[self.mainWebView.scrollView setScrollEnabled: NO]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment