iphone - 如何通过单击 "Paid"应用程序中的按钮在iPhone的AppStore中打开 "Lite"应用程序页面?

标签 iphone objective-c iphone-sdk-3.0 ios4

我有一个应用程序的 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/

相关文章:

iphone - 提取NSCFConstantString的第一项

objective-c - Objective-C,NSThread分离与performSelectorInBackground

ios - 检测在 uiscrollView 中点击了哪个 UIImage

xcode - 为什么在我的 RootViewController :viewDidLoad method? 之后突然调用我的应用程序委托(delegate)的 didFinishLaunchingWithOptions 方法

iphone - CGBitmapContextCreateImage - vm_copy 失败 - iPhone SDK

iPhone - 在矢量应用程序上创建 Quartz 路径?

iphone - 开始编辑 TextView 时隐藏图像

objective-c - 如何在循环中设置UITextField的正确标签

iphone - 使用 MFMailComposeViewController 将大纲作为电子邮件发送

iphone - 我的开发人员没有使用 Interface Builder,这是一件坏事吗?