0
A
回答
1
-2
NSString *path = [[NSBundle mainBundle] bundlePath];
NSURL *baseURL = [NSURL fileURLWithPath:path];
[webView loadHTMLString:htmlString baseURL:baseURL];
然後,您可以參考你的圖片是這樣的:
<img src="myimage.png">
相關問題
- 1. 在webview中顯示圖像
- 2. 從私人目錄中顯示圖像
- 3. HTML WebView不顯示背景圖像
- 4. 在目錄中循環顯示圖像
- 5. Tkinter不在目錄中顯示圖像
- 6. 如何從目錄顯示圖像?
- 7. 使用圖像目錄顯示圖像
- 8. 我無法在webview中顯示圖像
- 9. 在webview中快速顯示圖像
- 10. Webview在Android中顯示圖像(Tabactivity)
- 11. 如何在webview android中顯示圖像?
- 12. 如何在webview中顯示圖像?
- 13. 在WinRT WebView控件中顯示圖像
- 14. 在WebView中顯示設備上的外部存儲目錄中的圖像
- 15. UIImagePicker從webView顯示保存的圖像
- 16. 在android webview中顯示未保存html文件的圖像
- 17. 在webview中通過html顯示圖像的iPad應用問題
- 18. 使用css,html在iphone webview屏幕中心顯示圖像
- 19. 如何顯示圖像從文檔目錄到圖像視圖?
- 20. 從圖庫中選擇圖像,在imageview中顯示並保存在新目錄中顯示的圖像
- 21. Android webview不顯示圖像
- 22. 顯示網絡目錄中的圖像
- 23. 顯示目錄中的所有圖像
- 24. 顯示目錄中的最新圖像
- 25. 以PHP中的目錄顯示圖像
- 26. 顯示目錄中的圖像
- 27. 如何從外部項目目錄中顯示圖像
- 28. HTML /在HTML頁面中顯示圖像
- 29. Android WebView中未顯示的圖像
- 30. Webview不顯示android 4.0中的圖像?
http://stackoverflow.com/questions/478665/link-to-resources-inside-webview-iphone/1382396#1382396在這裏我找到了swer – pankaj 2011-07-26 12:52:58