How to retrieve Safari, or my default browser’s instance object, if I open the URL using following code for iPad
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://www.google.com"]];
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can’t, once you open the URL safari moves to the foreground, replacing your app. From the documentation:
But you can create your own view controller inside your app with a web view and implement some basic browser controls if you like. The
UIWebViewclass hasgoBackandgoForwardmethods you can use for that.