按日期从iPhone删除本地通知 [英] Remove a local notification from iPhone by Date

查看:101
本文介绍了按日期从iPhone删除本地通知的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

iPhone上有可能在日期加载LocalNotification吗?
我的问题是我为通知创建了一个事件,但我在创建后释放了该对象。

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 english...

推荐答案

scheduledLocalNotifications 将为您提供所有预定的列表通知和使用

scheduledLocalNotifications will give you the list of all scheduled notifications and use

- (void)cancelLocalNotification:(UILocalNotification *)通知

或者您可以使用以下方式全部取消:

or you can cancel them all using:

 [[UIApplication sharedApplication] cancelAllLocalNotifications];

这篇关于按日期从iPhone删除本地通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆