取消重复本地通知的单次出现 [英] Cancelling single occurence of repeating local notification

查看:212
本文介绍了取消重复本地通知的单次出现的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已安排重复本地通知,比方说,上午10点。重复间隔为一周。是否有可能以编程方式取消重复通知的单一事件?例如,早上9点30分,用户点击了复选框并(以编程方式)取消了通知,因此它不会显示在10.00上,但会在下周显示?

I have scheduled repeating local notification for, let's say, 10.00 am. Repeat interval is one week. Is it possible to cancel programatically only single ocurrence of repeating notification? For example, it's 9.30 am, user has tapped checkbox and (programatically) cancelled notification, so it won't be displayed on 10.00, but will be displayed next week?

推荐答案

取消重复本地通知的单次出现是不可能的。在重复模式下安排通知时,即使重复通知,也只创建一个通知。它算作一个。所以你能做的就是用户点击开关取消该通知并重新安排,使其从下周10点开始。如果您需要任何帮助,我会帮助您。先尝试一下。

It is not possible to cancel single occurrence of a repeating local notification. When you are scheduling a notification in repeating mode, you are creating one and only one notification even though it repeats. It counted as one. So what you can do is if the user tapped the switch cancel that notification and reschedule it in such a way that it will start from next week 10 am. If you need any help on that i will help you. Give a try first.

这篇关于取消重复本地通知的单次出现的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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