Link to iTunes song / album from iPhone app

I am creating an iPhone app for a band that lists songs for a band. When the user touches the button next to the song, I want to open iTunes and display this song. I am currently using this code: [[UIApplication sharedApplication] openURL: [NSURL URLWithString: linkLocation]]; where linkLocation is the link to the song in iTunes. It works.

I have a problem finding a link to a song. The links that I get from the latest version of iTunes are different from the links that I used in the previous version (by clicking on the down arrow next to the song and selecting "copy link"). If I use the link from the new version of iTunes, I get the error message "Your request could not be completed" on my iPhone when I try to open this link through my application.

I also tried using Apple's itmsLinkMaker website, and this also does not work.

+5
source share
2 answers

Well, it turns out the Apple itmsLinkMaker website is working - I must have copied the links incorrectly.

, - : http://ax.phobos.apple.com.edgesuite.net/WebObjects/MZStoreServices.woa/wa/itmsLinkMaker

+5

. Apple .

, , iTunes Link Maker. .

0

All Articles