yes it's very simple but, for others, remember to put "file://" at the beginning of your path
for example:
NSString *path = [[NSBundle mainBundle] pathForResource:@"test" ofType:@"png"];
[myWebView loadHTMLString:[NSString stringWithFormat:@"<html><body><img src="file://%@"></body></html>",path] baseURL:nil];
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…