The simpler method that I use (and does not require icons) relates to resetting an array of scheduled local notifications for myself as follows:
UIApplication* application = [UIApplication sharedApplication]; NSArray* scheduledNotifications = [NSArray arrayWithArray:application.scheduledLocalNotifications]; application.scheduledLocalNotifications = scheduledNotifications;
This means that any scheduled notifications remain valid, and all "old" notifications that are present in the Notification Center are deleted. However, it also has a sense of something that might change in a future version of iOS, as I have not seen any documentation for this behavior.
Of course, if you want to remove all notifications, it's just the following:
[[UIApplication sharedApplication] cancelAllLocalNotifications];
Gabriel Reid Feb 14 2018-12-12T00: 00Z
source share