typedef NS_OPTIONS(NSUInteger, NSCalendarOptions) {
NSCalendarWrapComponents = (1UL << 0), // option for arithmetic operations that do calendar addition
NSCalendarMatchStrictly NS_ENUM_AVAILABLE(10_9, 7_0) = (1ULL << 1),
NSCalendarSearchBackwards NS_ENUM_AVAILABLE(10_9, 7_0) = (1ULL << 2),
NSCalendarMatchPreviousTimePreservingSmallerUnits NS_ENUM_AVAILABLE(10_9, 7_0) = (1ULL << 8),
NSCalendarMatchNextTimePreservingSmallerUnits NS_ENUM_AVAILABLE(10_9, 7_0) = (1ULL << 9),
NSCalendarMatchNextTime NS_ENUM_AVAILABLE(10_9, 7_0) = (1ULL << 10),
NSCalendarMatchFirst NS_ENUM_AVAILABLE(10_9, 7_0) = (1ULL << 12),
NSCalendarMatchLast NS_ENUM_AVAILABLE(10_9, 7_0) = (1ULL << 13)
}; // 这是枚举吗? 位枚举也是这样写吗
|
|