How do I launch App Store within my app?

Discussion in 'iOS Programming' started by ethana, Nov 1, 2008.

  1. ethana macrumors 6502a

    Jul 17, 2008
    Seattle, WA
    I am trying to cross-promote my apps by allowing users to touch an icon with my app that launches the App Store to another app I own. I think a good working example of this is the Air Hockey (Free) app, which currently does this.

    How do I do this within my code?

  2. liptonlover macrumors 6502a

    Mar 13, 2008
    I'd think you need a phobos link to your application, but that's not possible until you've already released your application as far as I know.
  3. NT1440 macrumors G4


    May 18, 2008
    It was my understanding that the SDK states no app can launch or close a different app.

    I could be wrong tho
  4. ethana thread starter macrumors 6502a

    Jul 17, 2008
    Seattle, WA
    I have the phobos link, but how do I use it to launch the App Store to my app?
  5. CarlosH macrumors member

    Apr 9, 2008
    San Francisco, CA
    Get the link to your application, an open an url, like this:

    - (void)goToAppStore {
    	NSURL * url = [[NSURL alloc] initWithString:@""];
    	[[UIApplication sharedApplication] openURL:url];
    This will close your application, and open the AppStore. Have fun.:)

Share This Page