Guest User

Untitled

a guest
Apr 25th, 2018
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. NSString * imgPath = [[NSBundle mainBundle] pathForResource:nameOfImage ofType:@"jpg"];
  2.  
  3. NSString * html = NSString [[[NSString alloc] initWithFormat:@"<img src="file://%@"/>", imgPath] autorelease];
  4.  
  5. [self.webView loadHTMLString:html baseURL:nil];
Add Comment
Please, Sign In to add comment