Open A Link in Safari from Your iPhone Application

A very basic functionality you can add in your application. this post is all about how can you push a link on the Safari from your application.

Implementation is pretty simple. You have to use openURL and bang you are done with it. Here is the example :-

-(IBAction)pushToSafari

{

[[UIApplication sharedApplication] openURL:[NSURL URLWithString: @"http://www.google.co.uk"]];

}

Hope it helps.

About these ads

, , ,

  1. Leave a comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: