passing text from an Array to UIWebView

做~自己de王妃 提交于 2019-12-12 01:55:06

问题


i want to pass some html i have saved as string and stored in an array into a UIWebView. can anyone help me on how to do this because all i can find is how to grab it from the internet rather than already stored data

Thanks


回答1:


Are you trying to provide generated HTML content to a UIWebView? If so, you'll want to use -[UIWebView loadHTMLString:baseURL:]. You can pass your HTML string for the first argument, and nil in for the second argument.



来源:https://stackoverflow.com/questions/2713388/passing-text-from-an-array-to-uiwebview

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!