开发者

launch browser(safari)inside my app

开发者 https://www.devze.com 2023-01-05 15:25 出处:网络
I have the following code NSURL *url = [NSURL URLWithString:@\"workingUrl\"]; [[UIApplication sharedApplication] openURL:url];

I have the following code

NSURL *url = [NSURL URLWithString:@"workingUrl"];
[[UIApplication sharedApplication] openURL:url];

which currently loads the url correctly but when the user is do开发者_开发技巧ne, they have to exit and go back into my app.

How can the browser be loaded from within my app?

Regards


You have to make a little browser yourself. Create a View Controller with a UIWebView and some buttons that tigger it's methods (forward, back, reload, etc).

0

精彩评论

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