Constants
The following constants are available globally.
-
Undocumented
Declaration
Objective-C
extern const CGFloat QMUIImagePreviewViewControllerCornerRadiusAutomaticDimension
Swift
let QMUIImagePreviewViewControllerCornerRadiusAutomaticDimension: CGFloat
-
当主题发生变化时发出这个通知,会先于 UIViewController/UIView 的 qmui_themeDidChangeByManager:identifier:theme:
Declaration
Objective-C
extern const NSNotificationName _Nonnull QMUIThemeDidChangeNotification
Swift
static let QMUIThemeDidChange: NSNotification.Name
-
Undocumented
Declaration
Objective-C
extern NSString *const QMUIThemeManagerNameDefault
Swift
let QMUIThemeManagerNameDefault: String
-
所有 QMUILog 的 name 都会以这个 key 存储到 NSUserDefaults 里(类型为 NSDictionary
*),可通过 dictionaryForKey: 获取到所有的 name 及对应的 enabled 状态。 Declaration
Objective-C
extern NSString *const _Nonnull QMUILoggerAllNamesKeyInUserDefaults
Swift
let QMUILoggerAllNamesKeyInUserDefaults: String
-
用于属性 maximumItemSize,是它的默认值。表示 item 的最大宽高会自动根据当前 floatLayoutView 的内容大小来调整,从而避免 item 内容过多时可能溢出 floatLayoutView。
Declaration
Objective-C
extern const CGSize QMUIFloatLayoutViewAutomaticalMaximumItemSize
Swift
let QMUIFloatLayoutViewAutomaticalMaximumItemSize: CGSize
-
用于
QMUIFillButton.cornerRadius
属性,当cornerRadius
为QMUIFillButtonCornerRadiusAdjustsBounds
时,QMUIFillButton
会在高度变化时自动调整cornerRadius
,使其始终保持为高度的 1/2。Declaration
Objective-C
extern const CGFloat QMUIFillButtonCornerRadiusAdjustsBounds
Swift
let QMUIFillButtonCornerRadiusAdjustsBounds: CGFloat
-
用于
QMUIGhostButton.cornerRadius
属性,当cornerRadius
为QMUIGhostButtonCornerRadiusAdjustsBounds
时,QMUIGhostButton
会在高度变化时自动调整cornerRadius
,使其始终保持为高度的 1/2。Declaration
Objective-C
extern const CGFloat QMUIGhostButtonCornerRadiusAdjustsBounds
Swift
let QMUIGhostButtonCornerRadiusAdjustsBounds: CGFloat
-
表示没有选中的item
Declaration
Objective-C
extern const NSInteger QMUIDialogSelectionViewControllerSelectedItemIndexNone
Swift
let QMUIDialogSelectionViewControllerSelectedItemIndexNone: Int
-
Undocumented
Declaration
Objective-C
extern const CGFloat QMUICollectionViewPagingLayoutRotationRadiusAutomatic
Swift
let QMUICollectionViewPagingLayoutRotationRadiusAutomatic: CGFloat
-
Undocumented
Declaration
Objective-C
extern const NSInteger QMUITipsAutomaticallyHideToastSeconds
Swift
let QMUITipsAutomaticallyHideToastSeconds: Int