我们可以用两种不同的setSignificantEventsUntilPrompt
一个应用程序中?例如说我有两个类别(真棒,更好)命名button.I需要出示appRating后的第一次成功的HIT AWESOME
按钮或2次成功命中BETTER
button.Is这可能吗?
You can modify Appirater as per your need. One way of achieving what you are looking for is by creating another routine in Appirater class that increments the significant event by 'X' number
Here is how I do.
In Appirater.h , Declare a new routine for tracking more significant events
In Appirater.m Modify the following
Modify - (void)incrementSignificantEventCount to accept a parameter - (void)incrementSignificantEventCount:(int)count
Inside incrementSignificantEventCount, replace sigEventCount++; with sigEventCount = sigEventCount + count;
Modify incrementSignificantEventAndRate:(BOOL)canPromptForRating to accept another parameter -(void)incrementSignificantEventAndRate:(BOOL)canPromptForRating withCount:(int)count
Inside incrementSignificantEventAndRate, replace [self incrementSignificantEventCount]; with [self incrementSignificantEventCount:count];
Replace userDidSignificantEvent: routine with the following code
Define new routine to track more significant event
Now you will be able to use methods,
[Appirater userDidSignificantEvent:YES] to increment by 1
[Appirater userDidMoreSignificantEvent:YES] to increment by 2
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.