【发布时间】:2012-02-08 11:39:39
【问题描述】:
我正在使用objective-c开发ios应用程序
我在文档中发现枚举具有这样的默认值:“1
我不明白这个默认值 示例:
enum {
UIDataDetectorTypePhoneNumber = 1 << 0,
UIDataDetectorTypeLink = 1 << 1,
UIDataDetectorTypeAddress = 1 << 2,
UIDataDetectorTypeCalendarEvent = 1 << 3,
UIDataDetectorTypeNone = 0,
UIDataDetectorTypeAll = NSUIntegerMax
};
那么,这个枚举中每个元素的默认值是多少?
谢谢
【问题讨论】:
标签: objective-c enums