首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >按钮单击事件中的iRate

按钮单击事件中的iRate
EN

Stack Overflow用户
提问于 2013-03-08 11:39:54
回答 1查看 815关注 0票数 1

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

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

代码语言:javascript
复制
+ (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;
}

但到目前为止,促销只能在应用程序开始时出现。

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

感谢你的帮助

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2013-03-08 11:53:56

您可以引导用户直接对您的应用进行应用存储和审核。将下面这一行添加到按钮单击操作中:

代码语言:javascript
复制
[[iRate sharedInstance] openRatingsPageInAppStore];
票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/15286302

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档