views:

88

answers:

2

Hello,

I'm new to iphone development and Sorry if my question sounds stupid. Just wondering is it possible that I can buy songs from the itunes using my iphone application I just saw some apps doing the same.

Any help will b greatly appreciated.

A: 

Well, this question is not relevant for this site, anyways...

Visit the website of Apple or iTunes and read the FAQ maybe you can find anything that can answer your question.

Jordy
+2  A: 

You can redirect to iTunes store. Use http://itunes.apple.com/linkmaker to make the links.

gives you a link like this: http://itunes.apple.com/no/album/on-and-on-chameleon/id369004228?i=369004237&uo=4

Then you can use this to open iTunes app:

NSString *buyString=@"http://itunes.apple.com/no/album/on-and-on-chameleon/id369004228?i=369004237&uo=4"
NSURL *url = [[NSURL alloc] initWithString:[buyString stringByAddingPercentEscapesUsingEncoding:NSASCIIS tringEncoding]];
[application openURL:url];
[url release];
Larsaronen
+1 for being the only one (so far) to understand the OPs question!
mkoistinen
Great! Thanx alot Larsaronen. May b I failed to explain what I really wanted. But thanx again 4 understanding n giving my post ur valuable tym. =)
Gr8 Warrior
I think the question is a good, and SO is good place to ask these kind of quetions. I only read it after edit though..If you feel that my answer is sufficient please accept it! (Checkmark to the left of my answer). Good luck developing youre app!
Larsaronen