[英]Remove a local notification from iPhone by Date
there is the possibility of a LocalNotification on the iPhone to load on a date? iPhone 上的 LocalNotification 是否有可能在某个日期加载? My problem is that I create an event for the notification but i release the object after creation.我的问题是我为通知创建了一个事件,但我在创建后释放了 object。
Or can I just create a new Object with the same data to delete my Notification?或者我可以使用相同的数据创建一个新的 Object 来删除我的通知吗?
sorry for my english...对不起我的英语不好...
scheduledLocalNotifications will give you the list of all scheduled notifications and use scheduleLocalNotifications将为您提供所有计划通知的列表并使用
- (void)cancelLocalNotification:(UILocalNotification *)notification
or you can cancel them all using:或者您可以使用以下方法取消它们:
[[UIApplication sharedApplication] cancelAllLocalNotifications];
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.