Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- NSString *htmlFile = [[NSBundle mainBundle] pathForResource:@"index" ofType:@"html" inDirectory:@""];
- NSData *htmlData = [NSData dataWithContentsOfFile:htmlFile];
- NSString *appUrlString = [NSString stringWithFormat:@"%@/web/", [[NSBundle mainBundle] resourcePath]];
- NSURL *appUrl = [NSURL URLWithString:appUrlString];
- [_appWebView loadData:htmlData MIMEType:@"text/html" textEncodingName:@"UTF-8" baseURL:appUrl];
Add Comment
Please, Sign In to add comment