[英]Open Itunes from iphone application
I want to open iTunes with a button click from the application to download an iTunes video. 我想通过从应用程序中单击按钮来打开iTunes,以下载iTunes视频。 What link I should give for this?
我应该为此提供什么链接?
Apple has a iTunes Link Maker tool that you can use to generate the links 苹果有一个iTunes Link Maker工具,可用于生成链接
With the link, you can then use 通过链接,您可以使用
[[UIApplication sharedApplication] openURL:itunesURL];
Just use iTunes Link Maker and remove the country code (ie " 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). 只需使用iTunes Link Maker并从 链接中 删除国家 ( 地区)代码 (即“ us ”),它将始终可以始终打开iTunes,而不会在浏览器中打开(如果目标系统上安装了iTunes)。
Then use the link you got to replace THE_ITUNES_LINK on your code: 然后使用您获得的链接替换代码中的THE_ITUNES_LINK:
[[UIApplication sharedApplication] openURL:THE_ITUNES_LINK];
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.