RatingsControllerNew 0.2.8

RatingsControllerNew 0.2.8

测试已测试
Lang语言 Obj-CObjective C
许可证 MIT
发布最后发布2017年1月

parag deshpande 维护。



  • parag-deshpande

示例

要运行示例项目,请克隆仓库,然后首先从 Example 目录中运行 pod install

简介

PDRatingsController 用于在 Appstore 中对应用程序进行评分。简单易集成,只需在您的 pod 文件中添加 pod,安装 pods,然后使用使用部分中描述的方法。

特性

  • 自定义警报消息

    • 使用方法设置提示标题和消息

      #(void)setAlertMessage1:(NSString*)alertMessage
      #(void)setAlertMessage2:(NSString*)alertMessage
      #(void)setAlertTitle1:(NSString*)alertTitle
      #(void)setAlertTitle2:(NSString*)alertTitle
      
  • 有“稍后提醒”选项可用

    • 设置使用 App 评分/评论的提示将出现的日期
      • 要设置小时数,请使用乘以 - 1/24*(小时数)
      • 要设置天数请使用 (天数)

    当设置的时间到达并且应用程序再次启动后,将出现提醒提示

需求

支持的 iOS 8.0 及更高版本

安装

RatingsControllerNew 通过 CocoaPods 提供。要安装它,只需将以下行添加到您的 Podfile 中。

pod "RatingsControllerNew"

使用方法

PDRatingsController 是单例类,允许用户在用户使用应用程序 n 次后对其进行评分。默认限制为 2,即用户必须至少使用应用程序 2 次才能评分

步骤

1 使用导入 PDRatingsView

    #import "PDRatingsView.h"

2 在 AppDelegate 的 didBecomeActiveMethod 中使用以下方法来启动评分/评论过程。

    #[[PDRatingsView ratings]initialiseWithAppId:(APP_ID) appName:(APP_NAME) countAppUsed:(COUNT_TO_ALLOW_USER_RATE_APP) remindAfterDays:(NUMBER_OF_DAYS) andPerformRateUsingActionEventOnly:(BOOL)];

3 在按钮点击/操作事件/用户想显示评分提示的地方调用

    #[[PDRatingsView ratings] checkCountForAppUsedAndDisplayAlertOn:(ViewController_To_Display_Promt)];
  1. 在更新版本出现的地方或您想重置 appcount 的位置调用 [[PDRatingsView ratings] resetSessionCountToOriginal]

作者

parag-deshpande,[email protected]

许可证

RatingsControllerNew 采用 MIT 许可证。有关更多信息,请参阅 LICENSE 文件。