搜尋

首頁  >  問答  >  主體

objective-c - IOS 重複通知提醒 。如何在工作日提醒

我需要在每個週一到週五提示。其他時間不提示。但是在NSCalendarUnit中沒有找到相關的。

    NSCalendarUnitEra                = kCFCalendarUnitEra,
    NSCalendarUnitYear               = kCFCalendarUnitYear,
    NSCalendarUnitMonth              = kCFCalendarUnitMonth,
    NSCalendarUnitDay                = kCFCalendarUnitDay,
    NSCalendarUnitHour               = kCFCalendarUnitHour,
    NSCalendarUnitMinute             = kCFCalendarUnitMinute,
    NSCalendarUnitSecond             = kCFCalendarUnitSecond,
    NSCalendarUnitWeekday            = kCFCalendarUnitWeekday,
    NSCalendarUnitWeekdayOrdinal     = kCFCalendarUnitWeekdayOrdinal,
    NSCalendarUnitQuarter            NS_ENUM_AVAILABLE(10_6, 4_0) = kCFCalendarUnitQuarter,
    NSCalendarUnitWeekOfMonth        NS_ENUM_AVAILABLE(10_7, 5_0) = kCFCalendarUnitWeekOfMonth,
    NSCalendarUnitWeekOfYear         NS_ENUM_AVAILABLE(10_7, 5_0) = kCFCalendarUnitWeekOfYear,
    NSCalendarUnitYearForWeekOfYear  NS_ENUM_AVAILABLE(10_7, 5_0) = kCFCalendarUnitYearForWeekOfYear,
    NSCalendarUnitNanosecond         NS_ENUM_AVAILABLE(10_7, 5_0) = (1 << 15),
    NSCalendarUnitCalendar           NS_ENUM_AVAILABLE(10_7, 4_0) = (1 << 20),
    NSCalendarUnitTimeZone           NS_ENUM_AVAILABLE(10_7, 4_0) = (1 << 21)
    
大家讲道理大家讲道理2795 天前682

全部回覆(0)我來回復

無回覆
  • 取消回覆