Skip to content

Instantly share code, notes, and snippets.

@PDMackinnon
Created February 3, 2014 15:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PDMackinnon/8786229 to your computer and use it in GitHub Desktop.
Save PDMackinnon/8786229 to your computer and use it in GitHub Desktop.
load local web page - in viewDidLoad
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