1

我在我的 ios 应用程序中使用 IRate。

我在我的代码中处理了两类 iRate。这是我在 appDelegate 中的代码

+ (void)initialize
{
    //set the bundle ID. normally you wouldn't need to do this
    //as it is picked up automatically from your Info.plist file
    //but we want to test with an app that's actually on the store
    [iRate sharedInstance].applicationBundleID = @"com.s.s";
    [iRate sharedInstance].onlyPromptIfLatestVersion = NO;

    //enable preview mode
    [iRate sharedInstance].previewMode = NO;
    //[iRate sharedInstance].daysUntilPrompt = 5;
    //[iRate sharedInstance].usesUntilPrompt = 15;
}

但是通过这个提示只能在应用程序启动时出现。

我想在按钮单击中打开它。

感谢帮助

4

1 回答 1

2

您可以引导用户访问应用商店并直接查看您的应用。将此行添加到您的按钮单击操作:

[[iRate sharedInstance] openRatingsPageInAppStore];
于 2013-03-08T03:53:55.663 回答