Quantcast
Channel: Inchoo » Ivan Kalaica
Viewing all articles
Browse latest Browse all 24

How to launch App Store from my iPhone application?

$
0
0

This is easy. Just follow the steps below and you will be over in less then minute.

  • Launch iTunes on your Mac.
  • Search for the item you want to link to.
  • Right-click or control-click on the item’s name in iTunes, then choose “Copy iTunes Store URL” from the pop-up menu.
    itunes_link1
  • The returned URL is an itunes.apple.com link. However, iPhone requires phobos URLs for direct linking to the App Store.
  • Therefore, you must replace itunes with phobos in the returned URL.
  • Open the modified URL using an NSURL object and the -[UIApplication openURL] method.
- (IBAction)appStoreLink {
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=301349397&mt=8"]];
}

Now when you press button linked with appStoreLink IBAction, App Store application will open and you will see Divine Office application. That’s all.


Viewing all articles
Browse latest Browse all 24

Trending Articles