开发者

Easiest Way To Add In-App Internet Browser?

I'm looking at how to make a very simple browser in my app. Only need reload, back, forward, etc.

Does anyone have any simple code they can add here?

I have a tableviewcell that when clicked will la开发者_运维知识库unch this view.


Add a UIWebView.

You can use

[webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.google.com"]]]` 

to open a website, -reload to reload, – goBack and -goForward to go back or forward.


Check out the UIWebView API, which is basically a WebKit rendering widget - the one that also powers iPhone's browser app.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜