【发布时间】:2012-07-12 11:56:49
【问题描述】:
我在资源的 ABC 文件夹中有一个图片说 point.png。
我想在 html 中显示该图像
NSString *myFilePath= [[NSBundle mainBundle] pathForResource:@"Point1" ofType:@"png"];
NSMutableString *strForWebView = [NSString stringWithFormat:@"<html>"
"<head><b>%@</b></head><br>"
"<img src= %@ height='30' width='30' />"
, [[play quotations] objectForKey:@"Heading"], myFilePath, .......
所以现在我应该怎么做才能选择图像的路径...in html 从中加载它在 web 视图中...
请帮忙
谢谢
【问题讨论】:
-
转到此链接。我希望这会对你有所帮助 http://[stackoverflow.com/questions/6420925/load-resources-from-relative-path-using-local-html-in-uiwebview][1] [1]: stackoverflow.com/questions/6420925/…
标签: iphone uiwebview resourcebundle