-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
  • 33,665
  • 59
  • 184
  • 335
  • 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,289
  • 1
  • 25
  • 32