문제

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