SARate 1.0.3

SARate 1.0.3

测试已测试
Lang语言 Obj-CObjective C
许可 MIT
发布最后发布2015年6月

andrei200287维护。



SARate 1.0.3

  • 作者:
  • Andrei Solovjev

SARate是一个库,用于在AppStore上获取正面应用评论。SARate是iRate的子类。

屏幕截图

SARate screen

SARate screen

YouTube视频

SARate youtube

要求

  • iOS 5+,
  • ARC。

安装

  1. SARate文件拖放到您的项目中。
  2. QuartzCore.frameworkMessageUI.framework添加到您的项目中。

示例用法

在AppDelegate的initialize方法中添加SARate配置代码

#import "SARate.h"

+ (void)initialize
{
    //configure
    [SARate sharedInstance].daysUntilPrompt = 5;
    [SARate sharedInstance].usesUntilPrompt = 5;
    [SARate sharedInstance].remindPeriod = 30;
    [SARate sharedInstance].email = @"[email protected]";
}

定制

#import "SARate.h"

+ (void)initialize
{
    //configure
    [SARate sharedInstance].daysUntilPrompt = 5;
    [SARate sharedInstance].usesUntilPrompt = 5;
    [SARate sharedInstance].remindPeriod = 30;
    [SARate sharedInstance].promptForNewVersionIfUserRated = YES;
    //enable preview mode
    [SARate sharedInstance].previewMode = YES;

    [SARate sharedInstance].email = @"[email protected]";
    // 4 and 5 stars
    [SARate sharedInstance].minAppStoreRaiting = 4;
    [SARate sharedInstance].emailSubject = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleDisplayName"];
    [SARate sharedInstance].emailText = @"Disadvantages: ";
    [SARate sharedInstance].headerLabelText = @"Like app?";
    [SARate sharedInstance].descriptionLabelText = @"Touch the star to rate.";
    [SARate sharedInstance].rateButtonLabelText = @"Rate";
    [SARate sharedInstance].cancelButtonLabelText = @"Not Now";
    [SARate sharedInstance].setRaitingAlertTitle = @"Rate";
    [SARate sharedInstance].setRaitingAlertMessage = @"Touch the star to rate.";
    [SARate sharedInstance].appstoreRaitingAlertTitle = @"Write a review on the AppStore";
    [SARate sharedInstance].appstoreRaitingAlertMessage = @"Would you mind taking a moment to rate it on the AppStore? It won’t take more than a minute. Thanks for your support!";
    [SARate sharedInstance].appstoreRaitingCancel = @"Cancel";
    [SARate sharedInstance].appstoreRaitingButton = @"Rate It Now";
    [SARate sharedInstance].disadvantagesAlertTitle = @"Disadvantages";
    [SARate sharedInstance].disadvantagesAlertMessage = @"Please specify the deficiencies in the application. We will try to fix it!";
}

联系

Andrei Solovjev

许可

SARate遵循MIT许可。有关更多信息,请参阅LICENSE文件。