Created
May 4, 2014 06:14
-
-
Save nonstriater/e817dcc51952384827ae to your computer and use it in GitHub Desktop.
Appirater 打开app时,提醒用户给应用打分
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// rate | |
[Appirater setAppId:kAppStoreID]; | |
[Appirater setOpenInAppStore:YES]; // 设置为NO,in-app方式打开 | |
[Appirater setDaysUntilPrompt:1]; // 1天过后 | |
[Appirater setUsesUntilPrompt:10]; // 使用10次 | |
[Appirater setSignificantEventsUntilPrompt:-1]; | |
[Appirater setTimeBeforeReminding:2]; | |
[Appirater appLaunched:YES]; | |
//iOS7以后,评分连接变化: | |
NSString *templateReviewURL = @"itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=APP_ID"; | |
NSString *templateReviewURLiOS7 = @"itms-apps://itunes.apple.com/app/idAPP_ID"; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment