当然,如果您安排了本地通知,即使您终止应用程序,它也会触发。
UILocalNotification *_localNotification = [[UILocalNotification alloc] init]; _localNotification.fireDate = [NSDate dateWithTimeIntervalSinceNow:_value]; _localNotification.timeZone = [NSTimeZone defaultTimeZone]; _localNotification.alertBody = @"Beep... Beep... Beep..."; _localNotification.soundName = UILocalNotificationDefaultSoundName; [[UIApplication sharedApplication]scheduleLocalNotification:_localNotification];
…对我来说就像是一种魅力。



