枚举

typedef NS_ENUM(NSInteger, TShirtSize) {
    TShirtSizeXS,
    TShirtSizeS,
    TShirtSizeM,
    TShirtSizeL,
    TShirtSizeXL
};

TShirtSize small = TShirtSizeS;
TShirtSize large = TShirtSizeL;

//comparison follows declaration order
bool isLarger = large > small;
//isLarger is 1