自定义警报的 UILocalNotification 重复间隔(周日、周一、周二、周三、周四、周五、周六) [英] UILocalNotification Repeat Interval for Custom Alarm (sun, mon, tue, wed, thu, fri, sat)

查看:33
本文介绍了自定义警报的 UILocalNotification 重复间隔(周日、周一、周二、周三、周四、周五、周六)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将 UILocalNotification 用于警报目的.我有一个基于工作日(周日、周一、周二、周三、周四、周五、周六)重复的自定义选项.如此多的应用程序完成了这个过程.我尽力了我的水平.但我无法让它工作.请你们帮帮我....

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.

这篇关于自定义警报的 UILocalNotification 重复间隔(周日、周一、周二、周三、周四、周五、周六)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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