0
我想設置firedate
UILocalNotification
到上午11:00和下午11:00每天(意味着每12小時)。我怎樣才能做到這一點?請建議。UILocalNotification按固定時間每天燃燒
我想設置firedate
UILocalNotification
到上午11:00和下午11:00每天(意味着每12小時)。我怎樣才能做到這一點?請建議。UILocalNotification按固定時間每天燃燒
創建兩個單獨的UILocalNotifications並指定重複間隔。
enum {
NSEraCalendarUnit = kCFCalendarUnitEra,
NSYearCalendarUnit = kCFCalendarUnitYear,
NSMonthCalendarUnit = kCFCalendarUnitMonth,
NSDayCalendarUnit = kCFCalendarUnitDay,
NSHourCalendarUnit = kCFCalendarUnitHour,
NSMinuteCalendarUnit = kCFCalendarUnitMinute,
NSSecondCalendarUnit = kCFCalendarUnitSecond,
NSWeekCalendarUnit = kCFCalendarUnitWeek,
NSWeekdayCalendarUnit = kCFCalendarUnitWeekday,
NSWeekdayOrdinalCalendarUnit = kCFCalendarUnitWeekdayOrdinal,
NSQuarterCalendarUnit = kCFCalendarUnitQuarter,
NSCalendarCalendarUnit = (1 << 20),
NSTimeZoneCalendarUnit = (1 << 21),
};
typedef NSUInteger NSCalendarUnit;