Enumerations

The following enumerations are available globally.

  • Undocumented

    See more

    Declaration

    Objective-C

    NS_ENUM(NSInteger, QMUIStaticTableViewCellAccessoryType) {
        QMUIStaticTableViewCellAccessoryTypeNone,
        QMUIStaticTableViewCellAccessoryTypeDisclosureIndicator,
        QMUIStaticTableViewCellAccessoryTypeDetailDisclosureButton,
        QMUIStaticTableViewCellAccessoryTypeCheckmark,
        QMUIStaticTableViewCellAccessoryTypeDetailButton,
        QMUIStaticTableViewCellAccessoryTypeSwitch,
    }

    Swift

    enum QMUIStaticTableViewCellAccessoryType : Int
  • Undocumented

    See more

    Declaration

    Objective-C

    NS_ENUM(NSInteger, QMUIToastViewPosition) {
        QMUIToastViewPositionTop,
        QMUIToastViewPositionCenter,
        QMUIToastViewPositionBottom
    }

    Swift

    enum QMUIToastViewPosition : Int
  • Undocumented

    See more

    Declaration

    Objective-C

    NS_ENUM(NSInteger, QMUIToastAnimationType) {
        QMUIToastAnimationTypeFade      = 0,
        QMUIToastAnimationTypeZoom,
        QMUIToastAnimationTypeSlide
    }

    Swift

    enum QMUIToastAnimationType : Int
  • Undocumented

    See more

    Declaration

    Objective-C

    NS_ENUM(NSInteger, QMUIAlertActionStyle) {
        QMUIAlertActionStyleDefault = 0,
        QMUIAlertActionStyleCancel,
        QMUIAlertActionStyleDestructive
    }

    Swift

    enum QMUIAlertActionStyle : Int
  • Undocumented

    See more

    Declaration

    Objective-C

    NS_ENUM(NSInteger, QMUIAlertControllerStyle) {
        QMUIAlertControllerStyleActionSheet = 0,
        QMUIAlertControllerStyleAlert
    }

    Swift

    enum QMUIAlertControllerStyle : Int
  • Undocumented

    See more

    Declaration

    Objective-C

    NS_ENUM(NSUInteger, QMUIModalPresentationAnimationStyle) {
        QMUIModalPresentationAnimationStyleFade,    // 渐现渐隐,默认
        QMUIModalPresentationAnimationStylePopup,   // 从中心点弹出
        QMUIModalPresentationAnimationStyleSlide    // 从下往上升起
    }

    Swift

    enum QMUIModalPresentationAnimationStyle : UInt
  • Undocumented

    See more

    Declaration

    Objective-C

    NS_ENUM(NSUInteger, QMUIAssetType) {
        QMUIAssetTypeUnknow,
        QMUIAssetTypeImage,
        QMUIAssetTypeVideo,
        QMUIAssetTypeAudio
    }

    Swift

    enum QMUIAssetType : UInt
  • Undocumented

    See more

    Declaration

    Objective-C

    NS_ENUM(NSUInteger, QMUIAssetSubType) {
        QMUIAssetSubTypeUnknow,
        QMUIAssetSubTypeImage,
        QMUIAssetSubTypeLivePhoto NS_ENUM_AVAILABLE_IOS(9_1),
        QMUIAssetSubTypeGIF
    }

    Swift

    enum QMUIAssetSubType : UInt
  • Status when download asset from iCloud

    See more

    Declaration

    Objective-C

    enum QMUIAssetDownloadStatus {}

    Swift

    enum QMUIAssetDownloadStatus : UInt
  • 相册展示内容的类型

    See more

    Declaration

    Objective-C

    enum QMUIAlbumContentType {}

    Swift

    enum QMUIAlbumContentType : UInt
  • 相册展示内容按日期排序的方式

    See more

    Declaration

    Objective-C

    enum QMUIAlbumSortType {}

    Swift

    enum QMUIAlbumSortType : UInt
  • Asset 授权的状态

    See more

    Declaration

    Objective-C

    enum QMUIAssetAuthorizationStatus {}

    Swift

    enum QMUIAssetAuthorizationStatus : UInt
  • Undocumented

    See more

    Declaration

    Objective-C

    NS_ENUM (NSUInteger, QMUIImagePreviewMediaType) {
        QMUIImagePreviewMediaTypeImage,
        QMUIImagePreviewMediaTypeLivePhoto,
        QMUIImagePreviewMediaTypeVideo,
        QMUIImagePreviewMediaTypeOthers
    }

    Swift

    enum QMUIImagePreviewMediaType : UInt
  • Undocumented

    See more

    Declaration

    Objective-C

    NS_ENUM(NSUInteger, QMUIImagePreviewViewControllerTransitioningStyle) {
        /// present 时整个界面渐现,dismiss 时整个界面渐隐,默认。
        QMUIImagePreviewViewControllerTransitioningStyleFade,
        
        /// present 时从某个指定的位置缩放到屏幕中央,dismiss 时缩放到指定位置,必须实现 sourceImageView 并返回一个非空的值
        QMUIImagePreviewViewControllerTransitioningStyleZoom
    }

    Swift

    enum QMUIImagePreviewViewControllerTransitioningStyle : UInt
  • Undocumented

    See more

    Declaration

    Objective-C

    NS_ENUM(NSInteger, QMUIAnimationEasings) {
        QMUIAnimationEasingsLinear,
        QMUIAnimationEasingsEaseInSine,
        QMUIAnimationEasingsEaseOutSine,
        QMUIAnimationEasingsEaseInOutSine,
        QMUIAnimationEasingsEaseInQuad,
        QMUIAnimationEasingsEaseOutQuad,
        QMUIAnimationEasingsEaseInOutQuad,
        QMUIAnimationEasingsEaseInCubic,
        QMUIAnimationEasingsEaseOutCubic,
        QMUIAnimationEasingsEaseInOutCubic,
        QMUIAnimationEasingsEaseInQuart,
        QMUIAnimationEasingsEaseOutQuart,
        QMUIAnimationEasingsEaseInOutQuart,
        QMUIAnimationEasingsEaseInQuint,
        QMUIAnimationEasingsEaseOutQuint,
        QMUIAnimationEasingsEaseInOutQuint,
        QMUIAnimationEasingsEaseInExpo,
        QMUIAnimationEasingsEaseOutExpo,
        QMUIAnimationEasingsEaseInOutExpo,
        QMUIAnimationEasingsEaseInCirc,
        QMUIAnimationEasingsEaseOutCirc,
        QMUIAnimationEasingsEaseInOutCirc,
        QMUIAnimationEasingsEaseInBack,
        QMUIAnimationEasingsEaseOutBack,
        QMUIAnimationEasingsEaseInOutBack,
        QMUIAnimationEasingsEaseInElastic,
        QMUIAnimationEasingsEaseOutElastic,
        QMUIAnimationEasingsEaseInOutElastic,
        QMUIAnimationEasingsEaseInBounce,
        QMUIAnimationEasingsEaseOutBounce,
        QMUIAnimationEasingsEaseInOutBounce,
        QMUIAnimationEasingsSpring, // 自定义任意弹簧曲线
        QMUIAnimationEasingsSpringKeyboard // 系统键盘动画曲线
    }

    Swift

    enum QMUIAnimationEasings : Int
  • Undocumented

    See more

    Declaration

    Objective-C

    NS_ENUM(NSUInteger, QMUIPopupContainerViewLayoutDirection) {
        QMUIPopupContainerViewLayoutDirectionAbove,
        QMUIPopupContainerViewLayoutDirectionBelow,
        QMUIPopupContainerViewLayoutDirectionLeft,
        QMUIPopupContainerViewLayoutDirectionRight
    }

    Swift

    enum QMUIPopupContainerViewLayoutDirection : UInt
  • Undocumented

    See more

    Declaration

    Objective-C

    NS_ENUM(NSUInteger, QMUILogLevel) {
        QMUILogLevelDefault,    // 当使用 QMUILog() 时使用的等级
        QMUILogLevelInfo,       // 当使用 QMUILogInfo() 时使用的等级,比 QMUILogLevelDefault 要轻量,适用于一些无关紧要的信息
        QMUILogLevelWarn        // 当使用 QMUILogWarn() 时使用的等级,最重,适用于一些异常或者严重错误的场景
    }

    Swift

    enum QMUILogLevel : UInt
  • 控制图片在UIButton里的位置,默认为QMUIButtonImagePositionLeft

    See more

    Declaration

    Objective-C

    enum QMUIButtonImagePosition {}

    Swift

    enum QMUIButtonImagePosition : UInt
  • Undocumented

    See more

    Declaration

    Objective-C

    NS_ENUM(NSUInteger, QMUIFillButtonColor) {
        QMUIFillButtonColorBlue,
        QMUIFillButtonColorRed,
        QMUIFillButtonColorGreen,
        QMUIFillButtonColorGray,
        QMUIFillButtonColorWhite,
    }

    Swift

    enum QMUIFillButtonColor : UInt
  • Undocumented

    See more

    Declaration

    Objective-C

    NS_ENUM(NSUInteger, QMUIGhostButtonColor) {
        QMUIGhostButtonColorBlue,
        QMUIGhostButtonColorRed,
        QMUIGhostButtonColorGreen,
        QMUIGhostButtonColorGray,
        QMUIGhostButtonColorWhite,
    }

    Swift

    enum QMUIGhostButtonColor : UInt
  • Undocumented

    See more

    Declaration

    Objective-C

    NS_ENUM(NSUInteger, QMUIToolbarButtonType) {
        QMUIToolbarButtonTypeNormal,            // 普通工具栏按钮
        QMUIToolbarButtonTypeRed,               // 工具栏红色按钮,用于删除等警告性操作
        QMUIToolbarButtonTypeImage,             // 图标类型的按钮
    }

    Swift

    enum QMUIToolbarButtonType : UInt
  • Undocumented

    See more

    Declaration

    Objective-C

    NS_ENUM(NSUInteger, QMUINavigationButtonType) {
        QMUINavigationButtonTypeNormal,         // 普通导航栏文字按钮
        QMUINavigationButtonTypeBold,           // 导航栏加粗按钮
        QMUINavigationButtonTypeImage,          // 图标按钮
        QMUINavigationButtonTypeBack            // 自定义返回按钮(可以同时带有title)
    }

    Swift

    enum QMUINavigationButtonType : UInt
  • 设置title和subTitle的布局方式,默认是水平布局。

    See more

    Declaration

    Objective-C

    enum QMUINavigationTitleViewStyle {}

    Swift

    enum QMUINavigationTitleViewStyle : Int
  • 设置titleView的样式,默认没有任何修饰

    See more

    Declaration

    Objective-C

    enum QMUINavigationTitleViewAccessoryType {}

    Swift

    enum QMUINavigationTitleViewAccessoryType : Int
  • 饼状进度条控件

    使用 tintColor 更改进度条饼状部分和边框部分的颜色

    使用 backgroundColor 更改圆形背景色

    通过 UIControlEventValueChanged 来监听进度变化

    See more

    Declaration

    Objective-C

    enum QMUIPieProgressViewShape {}

    Swift

    enum QMUIPieProgressViewShape : UInt
  • Undocumented

    See more

    Declaration

    Objective-C

    NS_ENUM(NSUInteger, QMUITableViewHeaderFooterViewType) {
        QMUITableViewHeaderFooterViewTypeUnknow,
        QMUITableViewHeaderFooterViewTypeHeader,
        QMUITableViewHeaderFooterViewTypeFooter
    }

    Swift

    enum QMUITableViewHeaderFooterViewType : UInt
  • Undocumented

    See more

    Declaration

    Objective-C

    NS_ENUM(NSInteger, QMUICollectionViewPagingLayoutStyle) {
        QMUICollectionViewPagingLayoutStyleDefault, // 普通模式,水平滑动
        QMUICollectionViewPagingLayoutStyleScale,   // 缩放模式,两边的item会小一点,逐渐向中间放大
        QMUICollectionViewPagingLayoutStyleRotation // 旋转模式,围绕底部某个点为中心旋转
    }

    Swift

    enum QMUICollectionViewPagingLayoutStyle : Int