Add iRates in iPhone/iPad application

A

1)Download iRate.bundle form https://github.com/nicklockwood/iRate
Add iRate.bundle, iRate.h, iRate.m
Add StoreKit.framework from Build phases

2)#import “iRate.h” in AppDelegate.h/AppDelegate.m

3)AppDelegate.h/AppDelegate.m
#pragma mark – delegate methods for iRates
– (void)iRateCouldNotConnectToAppStore:(NSError *)error
{
}

– (void)iRateDidDetectAppUpdate
{
}

– (BOOL)iRateShouldShouldPromptForRating
{
return 0;
}

– (void)iRateUserDidAttemptToRateApp
{
}

– (void)iRateUserDidDeclineToRateApp
{
}

– (void)iRateUserDidRequestReminderToRateApp
{
}

– (BOOL)iRateShouldopenAppStore
{
return 0;
}

+ (void)initialize
{
[iRate sharedInstance].daysUntilPrompt = 5;
[iRate sharedInstance].usesUntilPrompt = 15;
}

About the author

abdulgafar.nurbash
By abdulgafar.nurbash

Category