xcode 如何在我们的 ipad 或 iphone 应用程序中打开应用程序商店?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/4437779/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
how to open app store with in our ipad or iphone application?
提问by Nitesh M
Hi i want to open app store with in our application with the specific publisher search or specific application types..on clicking of button..let's say More App's...
嗨,我想在我们的应用程序中使用特定的发布者搜索或特定的应用程序类型打开应用程序商店..点击按钮..让我们说更多应用程序......
回答by Matthew Frederick
You can get the appropriate URL to your app here:
http://itunes.apple.com/linkmaker
If you enter the name of your company the linkmaker will provide an "artist link" that shows all of your apps.If you use the itms-apps://prefix the user is sent directly to the App Store App with the specified app showing rather than the ugly first-Safari-then-the-App-Store-App shuffle that you get without that UTI. A la:
您可以在此处获取应用程序的相应 URL:
http: //itunes.apple.com/linkmaker
如果您输入公司名称,linkmaker 将提供一个“艺术家链接”,其中显示您的所有应用程序。如果您使用itms-apps://前缀,用户将被直接发送到 App Store 应用程序,并显示指定的应用程序,而不是在没有 UTI 的情况下获得的丑陋的 first-Safari-then-the-App-Store-App shuffle . 啦啦:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:
@"itms-apps://yourAppLinkHere"]];
回答by Abolfoooud
To generate a link that is universal and not specific to an App Store Country do the following
要生成通用且不特定于 App Store 国家/地区的链接,请执行以下操作
Use
用
itms-apps://**ax.itunes**.apple.com/app/yourAppLinker
where yourAppLinker is the part of the link generated in (http://itunes.apple.com/linkmaker), as in Matthew Frederick's post, which contains your application name and id
其中 yourAppLinker 是 ( http://itunes.apple.com/linkmaker) 中生成的链接的一部分,如 Matthew Frederick 的帖子中所示,其中包含您的应用程序名称和 ID
it worked for me
它对我有用
cheers
干杯
回答by Ahmet Hayrullahoglu
For IOS7 and later for example:
对于 IOS7 及更高版本,例如:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"itms-apps://itunes.apple.com/app/id547101139"]];