iPhone – Create an URL Link

We can add an open URL action in iPhone application by the following line of code.

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"https://ykyuen.wordpress.com"]];

please note that it will close the application and open the URL in browser.

And if you want to have a direct link to Apple appstore, you can get the URL from iTunes Link Maker.

Reference:

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 )

Google photo

You are commenting using your Google 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 )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.