Guest User

Untitled

a guest
Jan 20th, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. NSString *htmlFile = [[NSBundle mainBundle] pathForResource:@"index" ofType:@"html" inDirectory:@""];
  2. NSData *htmlData = [NSData dataWithContentsOfFile:htmlFile];
  3.  
  4. NSString *appUrlString = [NSString stringWithFormat:@"%@/web/", [[NSBundle mainBundle] resourcePath]];
  5. NSURL *appUrl = [NSURL URLWithString:appUrlString];
  6.  
  7. [_appWebView loadData:htmlData MIMEType:@"text/html" textEncodingName:@"UTF-8" baseURL:appUrl];
Add Comment
Please, Sign In to add comment