开发者

Easiest Way To Add In-App Internet Browser?

开发者 https://www.devze.com 2023-02-28 15:05 出处:网络
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'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

精彩评论

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