NSAlert
アプリの 3 回目、10 回目、20 回目の起動時に表示する必要があります。
/* Note that the kLaunchCount is incremented as a Number in a dictionary */
if([[[NSUserDefaults standardUserDefaults] objectForKey:@"kLaunchCount"] intValue] == 1||2||3)
{
/* show the NSAlert */
}
上記のコードは、NSAlert
すべての起動を示しています。