开发者

Remove a local notification from iPhone by Date

开发者 https://www.devze.com 2023-03-02 01:40 出处:网络
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.

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 engl开发者_如何学运维ish...


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];
0

精彩评论

暂无评论...
验证码 换一张
取 消