Ios UILocalNotification在begin已删除的情况下激发

Ios UILocalNotification在begin已删除的情况下激发,ios,objective-c,xcode,local,uilocalnotification,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; LocalNot

因此,我在我的应用程序中实现了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];

通知启动正常。然而,我注意到它每分钟都在启动,并显示旧文本(我已经更新了)。因此,它显示的不是“查看新内容”,而是一个旧字符串。我对此完全感到困惑。我甚至删除了通知,但它仍然会触发。我试过几次干净的建筑都没有用。您知道如何将此通知更改为正确触发并显示正确的字符串吗?

您是如何删除此通知的?如果没有帮助,请使用
[[UIApplication sharedApplication]cancelAllNotification]