我需要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
每次启动。