问题
there is the possibility of a LocalNotification on the iPhone to load on a date? My problem is that I create an event for the notification but i release the object after creation.
Or can I just create a new Object with the same data to delete my Notification?
sorry for my english...
回答1:
scheduledLocalNotifications will give you the list of all scheduled notifications and use
- (void)cancelLocalNotification:(UILocalNotification *)notification
or you can cancel them all using:
[[UIApplication sharedApplication] cancelAllLocalNotifications];
来源:https://stackoverflow.com/questions/5866146/remove-a-local-notification-from-iphone-by-date