BannerViewCell

open class BannerViewCell : UICollectionViewCell

Banner视图默认Cell

Accessor

  • 标题,支持String|NSAttributedString

    Declaration

    Swift

    open var title: Any? { get set }
  • 轮播文字label字体颜色

    Declaration

    Swift

    open var titleLabelTextColor: UIColor? { get set }
  • 轮播文字label字体

    Declaration

    Swift

    open var titleLabelTextFont: UIFont? { get set }
  • 轮播文字label背景颜色

    Declaration

    Swift

    open var titleLabelBackgroundColor: UIColor? { get set }
  • 轮播文字label高度

    Declaration

    Swift

    open var titleLabelHeight: CGFloat
  • 轮播文字间距设置(影响背景),默认全部0

    Declaration

    Swift

    open var titleLabelInset: UIEdgeInsets
  • 轮播文字内容间距设置(不影响背景),默认{0 16 0 16}

    Declaration

    Swift

    open var titleLabelContentInset: UIEdgeInsets { get set }
  • 轮播文字label对齐方式

    Declaration

    Swift

    open var titleLabelTextAlignment: NSTextAlignment { get set }
  • 图片视图间距设置,默认全部0

    Declaration

    Swift

    open var imageViewInset: UIEdgeInsets
  • 内容视图间距设置,默认全部0

    Declaration

    Swift

    open var contentViewInset: UIEdgeInsets
  • 内容视图圆角设置,默认0

    Declaration

    Swift

    open var contentViewCornerRadius: CGFloat { get set }
  • 内容视图背景色,默认nil

    Declaration

    Swift

    open var contentViewBackgroundColor: UIColor? { get set }
  • 是否已配置完成

    Declaration

    Swift

    open var hasConfigured: Bool
  • 只展示文字轮播

    Declaration

    Swift

    open var onlyDisplayText: Bool

Subviews

  • 图片视图

    Declaration

    Swift

    open lazy var imageView: UIImageView { get set }
  • 标题标签

    Declaration

    Swift

    open lazy var titleLabel: UILabel { get set }

Lifecycle

  • Undocumented

    Declaration

    Swift

    public override init(frame: CGRect)
  • Undocumented

    Declaration

    Swift

    public required init?(coder: NSCoder)
  • Undocumented

    Declaration

    Swift

    open override func layoutSubviews()

StatisticalViewProtocol