2011-07-25 54 views

回答

-1

創建兩個單獨的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;