我有一个应用程序的 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
关于iphone - 如何通过单击 "Paid"应用程序中的按钮在iPhone的AppStore中打开 "Lite"应用程序页面?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4793898/