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.
精彩评论