1. Welcome to the new MacRumors forums. See our announcement and read our FAQ

iTunes Affiliate Links in iPhone App

Discussion in 'iPhone/iPad Programming' started by macuser1997, Mar 5, 2009.

  1. macrumors member

    #1
    I'm creating a music information app, and want to include links to songs in the iTunes store. Anyone have information about how to songs directly in the iTunes app on an iPhone? Or how to use the iTunes affiliate program in an iPhone app?

    Thanks.
     
  2. macrumors newbie

    #2
    good question

    Did anyone ever answer your question (e.g. in a PM)? I was wondering the same thing. The Tap Tap Revenge app from Tapulous appears to do this...
     
  3. macrumors demi-god

    #3
    You can just do something like when you press a button have it execute this:
    Code:
    NSURL *url = [[NSURL alloc] initWithString:@"YOUR_AFFILIATE_LINK_HERE"];
    [[UIApplication sharedApplication] openURL:url];
    [url release];
    
    What that will do is open Safari with your LinkShare affiliate link, then that will open up the iTunes app and take the user to the song/album/artist/whatever you linked to.
     

Share This Page