Enumerations
The following enumerations are available globally.
-
Undocumented
See moreDeclaration
Objective-C
NS_OPTIONS(NSUInteger, QMUIViewBorderPosition) { QMUIViewBorderPositionNone = 0, QMUIViewBorderPositionTop = 1 << 0, QMUIViewBorderPositionLeft = 1 << 1, QMUIViewBorderPositionBottom = 1 << 2, QMUIViewBorderPositionRight = 1 << 3 }
Swift
struct QMUIViewBorderPosition : OptionSet
-
Undocumented
See moreDeclaration
Objective-C
NS_ENUM(NSUInteger, QMUIViewBorderLocation) { QMUIViewBorderLocationInside, QMUIViewBorderLocationCenter, QMUIViewBorderLocationOutside }
Swift
enum QMUIViewBorderLocation : UInt
-
Undocumented
See moreDeclaration
Objective-C
NS_ENUM(NSUInteger, QMUIFontWeight) { QMUIFontWeightLight, // 对应 UIFontWeightLight QMUIFontWeightNormal, // 对应 UIFontWeightRegular QMUIFontWeightBold // 对应 UIFontWeightSemibold }
Swift
enum QMUIFontWeight : UInt
-
Undocumented
See moreDeclaration
Objective-C
NS_OPTIONS (NSUInteger, QMUICornerMask) { QMUILayerMinXMinYCorner = 1U << 0, QMUILayerMaxXMinYCorner = 1U << 1, QMUILayerMinXMaxYCorner = 1U << 2, QMUILayerMaxXMaxYCorner = 1U << 3, }
Swift
struct QMUICornerMask : OptionSet
-
cell 在当前 section 里的位置,注意判断时要用 (var & xxx) == xxx 的方式
See moreDeclaration
Objective-C
enum QMUITableViewCellPosition {}
Swift
struct QMUITableViewCellPosition : OptionSet
-
Undocumented
See moreDeclaration
Objective-C
NS_ENUM(NSInteger, QMUIImageShape) { QMUIImageShapeOval, // 椭圆 QMUIImageShapeTriangle, // 三角形 QMUIImageShapeDisclosureIndicator, // 列表 cell 右边的箭头 QMUIImageShapeCheckmark, // 列表 cell 右边的checkmark QMUIImageShapeDetailButtonImage, // 列表 cell 右边的 i 按钮图片 QMUIImageShapeNavBack, // 返回按钮的箭头 QMUIImageShapeNavClose // 导航栏的关闭icon }
Swift
enum QMUIImageShape : Int
-
Undocumented
See moreDeclaration
Objective-C
NS_OPTIONS(NSInteger, QMUIImageBorderPosition) { QMUIImageBorderPositionAll = 0, QMUIImageBorderPositionTop = 1 << 0, QMUIImageBorderPositionLeft = 1 << 1, QMUIImageBorderPositionBottom = 1 << 2, QMUIImageBorderPositionRight = 1 << 3, }
Swift
struct QMUIImageBorderPosition : OptionSet
-
Undocumented
See moreDeclaration
Objective-C
NS_ENUM(NSInteger, QMUIImageResizingMode) { QMUIImageResizingModeScaleToFill = 0, // 将图片缩放到给定的大小,不考虑宽高比例 QMUIImageResizingModeScaleAspectFit = 10, // 默认的缩放方式,将图片保持宽高比例不变的情况下缩放到不超过给定的大小(但缩放后的大小不一定与给定大小相等),不会产生空白也不会产生裁剪 QMUIImageResizingModeScaleAspectFill = 20, // 将图片保持宽高比例不变的情况下缩放到不超过给定的大小(但缩放后的大小不一定与给定大小相等),若有内容超出则会被裁剪。若裁剪则上下居中裁剪。 QMUIImageResizingModeScaleAspectFillTop, // 将图片保持宽高比例不变的情况下缩放到不超过给定的大小(但缩放后的大小不一定与给定大小相等),若有内容超出则会被裁剪。若裁剪则水平居中、垂直居上裁剪。 QMUIImageResizingModeScaleAspectFillBottom // 将图片保持宽高比例不变的情况下缩放到不超过给定的大小(但缩放后的大小不一定与给定大小相等),若有内容超出则会被裁剪。若裁剪则水平居中、垂直居下裁剪。 }
Swift
enum QMUIImageResizingMode : Int
-
Undocumented
See moreDeclaration
Objective-C
NS_ENUM(NSUInteger, QMUICustomizeButtonPropType) { QMUICustomizeButtonPropTypeTitle, QMUICustomizeButtonPropTypeTitleColor, QMUICustomizeButtonPropTypeTitleShadowColor, QMUICustomizeButtonPropTypeImage, QMUICustomizeButtonPropTypeBackgroundImage, QMUICustomizeButtonPropTypeAttributedTitle }
Swift
enum QMUICustomizeButtonPropType : UInt