我希望能够安排 UILocalNotification 在每天的同一时间重复,但仅限于工作日(没有周六或周日)。使用 UILocalNotification 的重复间隔功能是否可以实现这一点,或者是我创建某种处理时间和日期并计算出何时提前安排(多个)通知的类的唯一选择?
提前致谢。
是的,这是可能的。设置repeatInterval
UILocalNotification 的NSWeekdayCalendarUnit
.
Here's 可用列表repeatIntervals http://developer.apple.com/library/ios/#documentation/Cocoa/Reference/Foundation/Classes/NSCalendar_Class/Reference/NSCalendar.html#//apple_ref/doc/c_ref/NSCalendarUnit.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)