UILocalNotification尽管已开始删除但仍会触发

时间:2014-03-29 14:02:35

标签: ios objective-c xcode local uilocalnotification

所以我在我的应用程序中实现了UILocal通知:

UILocalNotification *LocalNotification = [[UILocalNotification alloc] init];
if (LocalNotification == nil) return;
NSDate *execute = [[NSDate date]dateByAddingTimeInterval:10] ;
LocalNotification.fireDate = execute;
LocalNotification.alertBody = @"Check out what's new!";
LocalNotification.repeatInterval=NSDayCalendarUnit;


[[UIApplication sharedApplication] scheduleLocalNotification:LocalNotification];

通知已解雇。但是,我注意到它每分钟都会触发并显示旧文本(我已经更新了)。因此,它不是说“检查什么是新的”,而是显示一个旧的字符串。我对这完全感到困惑。我甚至删除了通知,它仍然会触发。我已经尝试了几次干净的构建无济于事。有任何想法如何更改此通知以正确触发并显示正确的字符串?

0 个答案:

没有答案