问题
How do I launch the iTunes Store app from my application? I want to take the user to a podcast page.
回答1:
Create a UIWebView, and put the link in so that when they press the button/link, it sends then to the URL for the web page. You'd think it'd open up in the webView, but usually iTunes automatically opens the iTunes app or the app store.
Need you learn how to use a webView? There are plenty of tutorials out there that can help. You can simply Google a tutorial, or search YouTube. Or, you can also post another question if you reach a problem.
Hope this is what you're looking for, your question was slightly confusing. If it isn't, I'd suggest revising your question slightly to specify.
回答2:
- Go here to get the URL for your podcast in iTunes.
- Replace "http://" with "itms://" in the URL you got in step 1.
Put this code where you want to open your podcast:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"<URL FROM STEP #2>"]];
回答3:
Couldn't you just find the link of the podcast in iTunes and then encorporate the link in your application?
来源:https://stackoverflow.com/questions/8867618/how-do-i-launch-the-itunes-store-app-from-my-application