第二次发布后制作UIAlertView节目

Dis*_*yOV 2 xcode uialertview ios

如果那是不可能的,那么我应该怎么做呢,比如3分钟的app使用?这将用于Rate Us警报但我宁愿用户有一些时间来实际使用该应用程序,然后才要求他们评分.

rob*_*off 6

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)options {
    // ...
    if ([self plusPlusLaunchCount] == 2) {
        [self showRateUsAlert];
    }
    return YES;
}

- (void)showRateUsAlert {
    // show the Rate Us alert view
}

- (NSInteger)plusPlusLaunchCount {
    static NSString *Key = @"launchCount";
    NSInteger count = 1 + [[NSUserDefaults standardUserDefaults] integerForKey:Key];
    [[NSUserDefaults standardUserDefaults] setInteger:count forKey:Key];
    return count;
}
Run Code Online (Sandbox Code Playgroud)