1 2
typedef NS_ENUM (NSUInteger, MyEnum) {MyValue1, MyValue2, MyValue3}; typedef NS_OPTIONS(NSUInteger, MyBitmask) {MyBit1, MyBit2, MyBit3};