Мне нужно показать 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
при каждом запуске.