Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- NSString * imgPath = [[NSBundle mainBundle] pathForResource:nameOfImage ofType:@"jpg"];
- NSString * html = NSString [[[NSString alloc] initWithFormat:@"<img src="file://%@"/>", imgPath] autorelease];
- [self.webView loadHTMLString:html baseURL:nil];
Add Comment
Please, Sign In to add comment