0

I want to open iTunes with a button click from the application to download an iTunes video. What link I should give for this?

Jeeter
  • 5,887
  • 6
  • 44
  • 67
Wasif Saood
  • 1,998
  • 1
  • 11
  • 12

2 Answers2

1

Apple has a iTunes Link Maker tool that you can use to generate the links

More information here

With the link, you can then use

[[UIApplication sharedApplication] openURL:itunesURL];
Marcos Crispino
  • 8,018
  • 5
  • 41
  • 59
0

Just use iTunes Link Maker and remove the country code (i.e. "us") out of the link and it would always work open iTunes always and not a browser on the way (if there is iTunes installed on the target system).

Then use the link you got to replace THE_ITUNES_LINK on your code:

[[UIApplication sharedApplication] openURL:THE_ITUNES_LINK];
Jameson
  • 76
  • 3