ImagePickGridView

open class ImagePickGridView : UIView
extension ImagePickGridView: UICollectionViewDataSource
extension ImagePickGridView: UICollectionViewDelegate

图片选取View

  • 列数

    Declaration

    Swift

    public var colCount: Int { get set }
  • 图片数据

    Declaration

    Swift

    public private(set) var imageList: [PickImageModel] { get set }
  • 是否需要图片添加按钮

    Declaration

    Swift

    public var isNeedAddButton: Bool
  • 是否需要图片删除按钮

    Declaration

    Swift

    public var isNeedDeleteButton: Bool
  • 图片最大数量 小于等于0表示没有最大限制

    Declaration

    Swift

    public var maxImageCount: Int
  • 代理

    Declaration

    Swift

    public weak var delegte: ImagePickGridViewDelegte?
  • Undocumented

    Declaration

    Swift

    public override init(frame: CGRect)
  • Undocumented

    Declaration

    Swift

    required public init?(coder: NSCoder)
  • Undocumented

    Declaration

    Swift

    open override func layoutSubviews()
  • 删除图片

    Declaration

    Swift

    public func removeImage(index: Int)
    Parameters
    index

    删除图片索引

  • 添加图片

    Declaration

    Swift

    public func addImage(imageArr: [PickImageModel])
    Parameters
    imageArr

    图片列表

  • 剩余可选最大数量

    Declaration

    Swift

    public var canPickResidueMaxCount: Int { get }
  • Undocumented

    Declaration

    Swift

    public func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int
  • Undocumented

    Declaration

    Swift

    public func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell
  • Undocumented

    Declaration

    Swift

    public func collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath)