【问题标题】:iRate in Button Click event按钮单击事件中的 iRate
【发布时间】:2013-03-08 03:39:54
【问题描述】:

我在我的 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;
}

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

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

感谢您的帮助

【问题讨论】:

    标签: iphone ios uibutton rate


    【解决方案1】:

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

    [[iRate sharedInstance] openRatingsPageInAppStore];
    

    【讨论】:

    • 您的应用已经在应用商店上架了吗?如果没有,连接错误是您唯一能得到的。如果它已经是 appstore 应用,则可能是您的 iRate 设置有问题。
    猜你喜欢
    • 1970-01-01
    • 2011-11-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-02-17
    • 1970-01-01
    • 1970-01-01
    • 2014-09-25
    相关资源
    最近更新 更多