如何从应用程序启动iTunes Store应用程序? [英] How do I launch the iTunes Store app from my application?
本文介绍了如何从应用程序启动iTunes Store应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何从应用程序启动iTunes Store应用程序?我想将用户带到播客页面.
How do I launch the iTunes Store app from my application? I want to take the user to a podcast page.
推荐答案
- 在此处处获取在iTunes中播客的URL.
- 在步骤1中获得的URL中,将"http://"替换为"itms://".
-
将此代码放在您要打开播客的位置:
- 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>"]];
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"<URL FROM STEP #2>"]];
这篇关于如何从应用程序启动iTunes Store应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文