Niksac
Niksac

Reputation: 770

Force a link to open in Safari instead of the in-app browser

I have an issue with QR Readers. I encode a URL within a QR Code. When read by many iPhone App they will open the URL within a WebView within the app.

I want to open a vcard there which those internal things just wont do - page stays blank whilst when opened directly in safari everything works great.

So my question is: Is there any way to get out of the WebView and open the safari?

Regards Nik

Upvotes: 5

Views: 8009

Answers (3)

b-p
b-p

Reputation: 307

While I agree with @rjstelling... try QRafter by Kerem Erkan - you can choose to open the URL specified in a QR code with either the application's web browser or in Safari.

Upvotes: 1

sosborn
sosborn

Reputation: 14694

No, there is no way to do this, you are at the mercy of the app creators.

Upvotes: 3

sElanthiraiyan
sElanthiraiyan

Reputation: 6268

NSURL *url = [NSURL URLWithString:@"http://www.google.com"];

if (![[UIApplication sharedApplication] openURL:url])
  NSLog(@"%@%@",@"Failed to open url:",[url description]);

Upvotes: 1

Related Questions