自定义报警的UILocalNotification重复间隔(sun,mon,tue,wed,thu,fri,sat) [英] UILocalNotification Repeat Interval for Custom Alarm (sun, mon, tue, wed, thu, fri, sat)

查看:238
本文介绍了自定义报警的UILocalNotification重复间隔(sun,mon,tue,wed,thu,fri,sat)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 UILocalNotification 作为警报目的。我有一个基于工作日重复的自定义选项(sun,mon,tue,wed,thu,fri,sat)。许多应用程序都执行了此过程。我最好的尝试了我的水平。但我无法让它发挥作用。请各位帮助我....

I'm using UILocalNotification for Alarm Purpose. I have a custom option for repeat based on weekdays (sun, mon, tue, wed, thu, fri, sat). So many applications did this process. I tried My level best. But I can't get it to work. Please you guys help me....

推荐答案

您无法使用 UILocalNotification 。之前已经问过这个问题(见下文),但只提供了有限的选项。 repeatInterval参数是一个枚举类型,它仅限于具体值

You cannot set custom repeat intervals with UILocalNotification. This has been asked before (see below) but only limited options are provided. The repeatInterval parameter is an enum type and it limited to specific values.

您无法将这些枚举与获得这些间隔的倍数。您的应用中不能设置超过64个本地通知。一旦发出通知,您就无法重新安排通知,除非用户选择在通知触发时运行您的应用程序(他们可能无法运行)。

You cannot multiply those enumerations and get multiples of those intervals. You cannot have more than 64 local notifications set in your app. You cannot reschedule a notification once it fires unless the user chooses to run your app when the notification fires (they may not run it).

请求重复间隔乘数在此处发布。您可以为其添加注释。我建议向Apple提交错误报告或功能请求(网址?)。

There is a request for repeat interval multipliers posted here. You can add comments to it. I suggest filing a bug report or feature request (url?) with Apple.

  • How to set Local Notification repeat interval to custom time interval?
  • Custom repeat interval for UILocalNotification
  • Custom UILocalNotification repeat interval
  • UILocalNotification Repeat
  • non-fixed repeatInterval in UILocalNotification
  • Can I have custom UILocalNotification repeat intervals (i.e. weekdays only?)
  • Repeating UILocalNotifications with Gaps
  • Repeat UILocalNotification on certain days of week

这篇关于自定义报警的UILocalNotification重复间隔(sun,mon,tue,wed,thu,fri,sat)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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