如何设置LocalNotification每两分钟重复一次?
我正在使用 LocalNotification 来设置日程警报。属性重复间隔允许我设置每分钟、每小时重复一次..但我想设置每两分钟重复一次?我该怎么办?
I'm using LocalNotication to set schedule Alarm. atribute repeatInterval allow me to set repeat each minute, each hour.. But I want to set repeat each two minutes? How can i do?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
尝试查看此博客文章
http://useyourloaf .com/blog/2010/9/13/repeating-an-ios-local-notification.html
try looking at this blog posting
http://useyourloaf.com/blog/2010/9/13/repeating-an-ios-local-notification.html
您可以安排 30 个闹钟。一小时内每 2 分钟一个,并将 30 个通知中的每个通知的重复间隔设置为每小时。
You can schedule 30 alarms. One for each 2nd minute for a whole hour, and set repeatInterval to each hour fo each of the 30 notifications.
我已在 http://bugreport.apple.com/ 提交了错误报告/增强功能,
您可以查看我在 Open Radar 存档的报告: http://openradar.appspot.com/radar?id= 759402
根据 Instapaper 开发者 Marco 的说法,苹果会部分根据有多少开发者提出请求来确定增强功能和功能请求的优先级。
如果此功能对您很重要,我建议您也提交一份报告。
I've filed a bug report/enhancement at http://bugreport.apple.com/
You may take a look at my report archived at Open Radar: http://openradar.appspot.com/radar?id=759402
According to Marco, developer of Instapaper, Apple prioritizes enhancement and feature requests partly based on how many developers are requesting them.
If this feature is important to you I urge you to file a report as well.