我在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;
}
但是这样,promt只能在应用程序开始时出现。
我想点击按钮打开它。
感谢您的帮助
答案 0 :(得分:2)
您可以引导用户直接appstore并查看您的应用。将此行添加到按钮单击操作:
[[iRate sharedInstance] openRatingsPageInAppStore];