Search code examples
iphonemobile-safari

launch browser(safari)inside my app


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 done, they have to exit and go back into my app.

How can the browser be loaded from within my app?

Regards


Solution

  • 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).