iPhone-UILocalNotification作为警报 [英] iPhone - UILocalNotification as alarm
本文介绍了iPhone-UILocalNotification作为警报的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
即使我的iPhone应用程序处于后台,我如何每天晚上8:00使用UILocalNotification来显示我的Alram?
Even when my iPhone application is in background, How can I use UILocalNotification to show my alram every day at 8.00 PM?
推荐答案
将 fireDate
设置为8.00 PM,并将 repeatInterval
设置为 NSDayCalendarUnit
并使用 [[UIApplication sharedApplication] scheduleLocalNotification:myNotification];
Set the fireDate
to 8.00 PM and set the repeatInterval
to NSDayCalendarUnit
and schedule the alert with [[UIApplication sharedApplication] scheduleLocalNotification: myNotification];
这篇关于iPhone-UILocalNotification作为警报的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文