开发者

UIWebView or UIScrollView for HTML like View in iPhone Application

Sorry for this simple question but I am looking for the design pattern for adding a simple HTML like page to an iPhone app.

My intuition tells me that making a View with a full screen WebView inside is obviously the easiest option, but I think a UIScrollView i开发者_如何学编程s better.

What's the best practice?

I basically want to have some text, float some images, add a few links etc.

Should I use WebView or ScrollView?

Thank you,

Kent


Well you're going to need a UIWebView if you want to display the contents of a local or remote web page. You would want to use a UIScrollView if you wanted to draw all of the content programmatically.

I think you want a UIWebView.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜