1/24/2009

Link to an App Store Page From Your App

If you have more than one app for sale on the App Store, it's a good idea to cross-promote your applications. For my newer apps, I've created a second view with a handful of links to my older stuff.

Making your app open up an App Store link is a simple. Just create a button and a method that gets called when you tap the button. In said method, all you need to do is put the following line:

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=299681466&mt=8"]];

Just replace the link there with your own from iTunes and you're all set.

PRO-TIP: When you go to iTunes and choose to copy the URL, it'll start with "itunes.apple.com/Webblahblahblah". Replace the "itunes.apple.com" part with "phobos.apple.com", just like how I have it in the example above. If you leave the itunes URL bit, your app will first open Safari, which will then in turn open up the App Store. Changing the itunes part to phobos will cause the App Store to open directly and the process will be faster and look much cleaner to your users.

No comments:

Post a Comment