我使用的Objective-C开发iOS应用程序枚举默认值理解
我在枚举有默认值这样的单证发现:“1 < < 0”
我不明白这一点默认值 例如:
enum {
UIDataDetectorTypePhoneNumber = 1 << 0,
UIDataDetectorTypeLink = 1 << 1,
UIDataDetectorTypeAddress = 1 << 2,
UIDataDetectorTypeCalendarEvent = 1 << 3,
UIDataDetectorTypeNone = 0,
UIDataDetectorTypeAll = NSUIntegerMax
};
那么,究竟是什么在此枚举每个元素的默认值?
感谢
非常感谢 – yasserislam 2012-02-08 13:09:40