I am using IRate in my ios application.

I had coped two classes of iRate in my code. This is my code in 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;
}

But by this the promt can only come at start of app.

I want to open it in button click.

Thanks for Help

有帮助吗?

解决方案

You can lead the user to appstore and review your app directly. Add this line to your button click action:

[[iRate sharedInstance] openRatingsPageInAppStore];
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top