开发者

how to display HTML in a UITextView

开发者 https://www.devze.com 2022-12-30 04:47 出处:网络
essetially I just want formatted HTML rendered in the UITextView, should I be using the undocumented setContentToHTMLString? I feel that I should not be using that, I have tried it, but the text 开发者

essetially I just want formatted HTML rendered in the UITextView, should I be using the undocumented setContentToHTMLString? I feel that I should not be using that, I have tried it, but the text 开发者_JAVA百科(after being rendered as HTML) does not scroll properly, which is why I suspect its not documented...

Should I just use a UIWebView? Can I just pass it arbitrary HTML and expect it to render it?


You can display arbitrary HTML in a UIWebView using loadHTMLString:baseURL: (see here).

0

精彩评论

暂无评论...
验证码 换一张
取 消