获取所有值

枚举

typedef NS_ENUM(NSInteger, Season) {
    SeasonSummer,
    SeasonFall,
    SeasonWinter,
    SeasonSpring,
    SeasonCount
};

//C 枚举不能迭代:用计数哨兵值限定循环范围
for (NSInteger s = SeasonSummer;
    s < SeasonCount; s++) {
    //0, 1, 2, 3
}