RDLoveSeeker 0.1.1

RDLoveSeeker 0.1.1

测试已测试
语言语言 Obj-CObjective C
许可证 MIT
发布最后发布2014 年 12 月

Lucas Vidal 维护。




用法

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

安装

RDLoveSeeker 将很快通过 CocoaPods 提供。要安装它,只需将以下行添加到您的 Podfile:

pod 'RDLoveSeeker'

作者

Lucas Vidal,[email protected]

许可证

RDLoveSeeker 根据 MIT 许可证提供。有关更多信息,请参阅 LICENSE 文件。

配置示例

当您设置库时,例如在 AppDelegate.m 中,您必须使用以下代码导入库:

#import "RDLoveSeeker.h"

配置

[RDLoveSeeker setDebug: NO];                        // Will display debug information

[RDLoveSeeker setEventsToRequestRating:15];         // How many significant events should be triggered before requesting user opinion

[RDLoveSeeker setDaysToRequestRating:21];           // How many days from install before requesting user opinion

[RDLoveSeeker setShouldRequestOnNewVersion:YES];    // If set to YES, the library will reset counters when the build number is changed, to request user feedback again once requirements are met.

[RDLoveSeeker setFeedbackEmailAddress:@"[email protected]"];  // Which email addres will be used to receive user feedback

[RDLoveSeeker setAppStoreID:529290320];             // App ip from app store, where the user will (hopefully) reward with 5 stars

记录事件

[RDLoveSeeker logSignificantEvent];                 // Use this method when you want to mark a significant event has happened.

一个很好的用途是在 AppDelegate#applicationDidBecomeActive:(UIApplication *)application 方法中调用此方法,这将计算每次应用程序打开。

如果您想检查特定时刻是否满足条件,只需调用:

[RDLoveSeeker verifyIfNeedsToBeShown]

本地化和文本

为了管理将显示哪些文本,请在每个语言中设置您的 Localizable.strings,以下文本:

// LoveSeeker Pod

"Do you love Restorando?" = "Do you love Restorando?";
"No" = "No";
"Yes" = "Yes";
"We're so happy to hear that" = "We're so happy to hear that you love Restorando!";
"It'd be really helpful if you rated us." = "It'd be really helpful if you rated us. Thanks so much for using Restorando ;)";
"Rate app" = "Rate app";
"What can we do to ensure that you love our app?" = "What can we do to ensure that you love our app?";
"We appreciate your feedback." = "We appreciate your feedback.";
"No thanks" = "No thanks";
"Not now" = "Not now";
"Send email" = "Send email";
"Feedback Email subject" = "My opinion about Restorando app";
"Feedback Email body" = "What I didn't like: \n\n\n What I did like: \n\n\n";
"Ooops" = "Ooops";
"There was an error sending feedback. Please try again later." = "There was an error sending feedback. Please try again later.";
"OK" = "OK";
"Thank you for helping us improve!" = "Thank you for helping us improve!";