要运行示例项目,请克隆仓库,然后首先从 Example 目录中运行 pod install
。
PDRatingsController 用于在 Appstore 中对应用程序进行评分。简单易集成,只需在您的 pod 文件中添加 pod,安装 pods,然后使用使用部分中描述的方法。
特性
自定义警报消息
使用方法设置提示标题和消息
#(void)setAlertMessage1:(NSString*)alertMessage
#(void)setAlertMessage2:(NSString*)alertMessage
#(void)setAlertTitle1:(NSString*)alertTitle
#(void)setAlertTitle2:(NSString*)alertTitle
有“稍后提醒”选项可用
当设置的时间到达并且应用程序再次启动后,将出现提醒提示
支持的 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)];
parag-deshpande,[email protected]
RatingsControllerNew 采用 MIT 许可证。有关更多信息,请参阅 LICENSE 文件。