可能重复:
枚举值:NSInteger 或 int?
这两个枚举定义有什么区别?
typedef enum : NSUInteger {
Honda = 1,
Chevrolet = 2,
Mercedes = 3,
Volvo = 4
} CarManufacturer;
和
enum {
HarleyDavidson = 1,
BMW = 2,
Yamaha = 3,
Kawasaki = 4,
};
typedef NSUInteger MotorcycleManufacturer;