BannerViewFlowLayout

open class BannerViewFlowLayout : UICollectionViewFlowLayout

BannerView流式布局

  • 是否启用分页,默认false

    Declaration

    Swift

    open var isPagingEnabled: Bool
  • 是否分页居中,默认false

    Declaration

    Swift

    open var isPagingCenter: Bool

Lifecycle

  • Undocumented

    Declaration

    Swift

    public override init()
  • Undocumented

    Declaration

    Swift

    public required init?(coder: NSCoder)

Public

  • 获取每页宽度,必须设置itemSize

    Declaration

    Swift

    open var pageWidth: CGFloat { get }
  • 获取当前页数,即居中cell的item

    Declaration

    Swift

    open var currentPage: Int? { get }
  • 滚动到指定页数

    Declaration

    Swift

    open func scrollToPage(_ index: Int, animated: Bool = true)

Override