我有2个版本的应用程序。精简版和付费版。
我想要一个Lite版本的按钮,单击该按钮可以在iPhone上打开App Store应用程序,并显示该应用程序的付费版本的页面。

我该怎么做呢?
我不想在Safari中打开“付费版本iTunes”页面。它应仅在App Store应用程序中打开。

谢谢!

最佳答案

这应该始终有效(在所有操作系统上):

http://itunes.apple.com/app/idYOUR_PAID_APP_ID


代码段(您可以复制并粘贴):

#define YOUR_PAID_APP_ID 553834731 // replace with your paid app ID

static NSString *const iOSAppStoreURLFormat = @"http://itunes.apple.com/app/id%d"; // General link to the App Store

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:[NSString stringWithFormat: iOSAppStoreURLFormat,YOUR_PAID_APP_ID ]]]; // Would open the right link

10-06 13:26
查看更多