Question

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

Was it helpful?

Solution

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

[[iRate sharedInstance] openRatingsPageInAppStore];
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top