如何在Webview中放置文本?

Jea*_*ard 3 iphone uiwebview uitextview ios

我有这种4段.

像这样:

我今天站在这里,对我们面前的任务感到谦卑,感谢你们给予的信任,同时铭记我们祖先所做的牺牲.我感谢布什总统为我们国家所做的贡献,以及他在整个过渡期间所表现出的慷慨与合作.

我想使用webview在不同视图中使用这些段落.

我的意思是我想在UIWebview中显示这些段落

任何人都可以告诉我该怎么做?

小智 7

[webView1 loadHTMLString:@"Welcome to StackOverFlow" baseURL:nil];  
Run Code Online (Sandbox Code Playgroud)


Kir*_*odd 6

[myWebView loadHTMLString:@"<p>I stand here today humbled by the task before us, grateful for the trust you have bestowed, mindful of the sacrifices borne by our ancestors. I thank President Bush for his service to our nation, as well as the generosity and cooperation he has shown throughout this transition</p>"]
Run Code Online (Sandbox Code Playgroud)