具有不同 NSDate 的本地通知

发布于 2024-10-09 09:25:48 字数 214 浏览 4 评论 0原文

在我的应用程序中,我将安排一项任务在特定日期和时间(例如 12 月 31 日)通知用户。 2010 我的开始时间为上午 9:00 ,结束时间为下午 5:00 ,在这里我必须在上午 9:00 之前和下午 5:00 之后或这些时间之间的某个时间(例如下午 2:00)通知用户 10 分钟所以我要使用 LocalNotifications ...我说得对吗?或者有没有其他方法可以实现这一点。

请帮忙..

In my application I am going to schedule a task to notify user at a particular date and time, for example on 31 dec. 2010 I have start time 9:00 Am and end-time 5:00 pm , and here I have to notify user 10 minutes before 9:00 AM and after 5:00 pm or sometime in between these times, like 2:00 pm so i am going to use LocalNotifications ...Am I right ? or is there any other way to achieve this .

PLease help ..

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

我不吻晚风 2024-10-16 09:25:48

您应该只使用 LocalNotificstion,问题是您应该创建 3 个不同的通知,以便您可以实现该场景

You should use LocalNotificstion only, the thing is that you should create 3 different notification so that you can achieve the scenario

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文