-1

Is there a way to programmatically dismiss all local notifications? My app has local notifications everyday, but if a user doesn't dismiss them, I don't want them to pile up for the user.

TruMan1
  • 30,176
  • 50
  • 162
  • 301
  • possible duplicate of [iOS find list of Local Notification the app has already set](http://stackoverflow.com/questions/17531332/ios-find-list-of-local-notification-the-app-has-already-set) – chedabob May 17 '15 at 18:33
  • UIApplication.sharedApplication().cancelAllLocalNotifications(). You could find this al over the internet but whatever. – Bas May 17 '15 at 18:54
  • possible duplicate of [How to delete a local notification in iPhone](http://stackoverflow.com/questions/3372387/how-to-delete-a-local-notification-in-iphone) – Bas May 17 '15 at 18:58

1 Answers1

0

UIApplication.sharedApplication().cancelAllLocalNotifications()

chrisamanse
  • 4,099
  • 1
  • 24
  • 32