实例1:
typedef enum {
AlertViewBtnTypeWeChat,AlertViewBtnTypeFriend,
AlertViewBtnTypeZone,
AlertViewBtnTypeQQ
}AlertViewBtnType;
实例2:
typedef NS_ENUM(NSInteger, parkType) {
Park_normal,
Park_plane,
Park_Monthly,
};
实例3:
typedef NS_OPTIONS(NSUInteger, UIViewAutoresizing) {
UIViewAutoresizingNone = 0,
UIViewAutoresizingFlexibleLeftMargin = 1 << 0,
UIViewAutoresizingFlexibleWidth = 1 << 1,
UIViewAutoresizingFlexibleRightMargin = 1 << 2,
UIViewAutoresizingFlexibleTopMargin = 1 << 3,
UIViewAutoresizingFlexibleHeight = 1 << 4,
UIViewAutoresizingFlexibleBottomMargin = 1 << 5
};