开发者

how to display text in UIWebVIew

开发者 https://www.devze.com 2023-01-13 18:55 出处:网络
I have a NSstring which stores the html text in it. i want to display this string in uiwebview. i am using this

I have a NSstring which stores the html text in it.

i want to display this string in uiwebview.

i am using this [self.webView loadHTMLString:mystring baseURL:nil]

i know this is wrong. can anybody tell me h开发者_高级运维ow can i display my nsstring in uiwebview?


[webView loadHTMLString:htmlString baseURL:[NSURL URLWithString:@"http://website.com"]]; should work fine.

make sure the script can access the webView object. :)

0

精彩评论

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