Reputation: 97
How I can override an already displayed Local Notification?
I just want one notification for a particular event where the value is changing from time to time, when a change for the event appear.
For the moment there is always a new notification created.
Upvotes: 1
Views: 388
Reputation: 4402
If the documentation is correct, you can't alter an already scheduled notification. The doc states for -scheduleLocalNotification:
:
[…] Because the operating system copies notification, you may release it once you have scheduled it. The notification object is copied by the system and not accessible via any (public) method. So there's no other solution than canceling the notification.
Reference link
Upvotes: 3