ImagePickerCollectionCell

open class ImagePickerCollectionCell : UICollectionViewCell

图片选择空间里的九宫格 cell,支持显示 checkbox、饼状进度条及重试按钮(iCloud 图片需要)

  • checkbox 未被选中时显示的图片

    Declaration

    Swift

    open var checkboxImage: UIImage? { get set }
  • checkbox 被选中时显示的图片

    Declaration

    Swift

    open var checkboxCheckedImage: UIImage? { get set }
  • checkbox 的 margin,定位从每个 cell(即每张图片)的最右边开始计算

    Declaration

    Swift

    open var checkboxButtonMargins: UIEdgeInsets { get set }
  • 禁用时蒙层颜色

    Declaration

    Swift

    open var disabledMaskColor: UIColor? { get set }
  • 选中时蒙层颜色

    Declaration

    Swift

    open var checkedMaskColor: UIColor? { get set }
  • videoDurationLabel 的字号

    Declaration

    Swift

    open var videoDurationLabelFont: UIFont? { get set }
  • videoDurationLabel 的字体颜色

    Declaration

    Swift

    open var videoDurationLabelTextColor: UIColor? { get set }
  • 视频时长文字的间距,相对于 cell 右下角而言,也即如果 right 越大则越往左,bottom 越大则越往上,另外 top 会影响底部遮罩的高度

    Declaration

    Swift

    open var videoDurationLabelMargins: UIEdgeInsets { get set }
  • Undocumented

    Declaration

    Swift

    open var editedIconImage: UIImage? { get set }
  • Undocumented

    Declaration

    Swift

    open var videoIconImage: UIImage? { get set }
  • Undocumented

    Declaration

    Swift

    open var iconImageViewMargins: UIEdgeInsets { get set }
  • checkedIndexLabel 的字号

    Declaration

    Swift

    open var checkedIndexLabelFont: UIFont? { get set }
  • checkedIndexLabel 的字体颜色

    Declaration

    Swift

    open var checkedIndexLabelTextColor: UIColor? { get set }
  • checkedIndexLabel 的尺寸

    Declaration

    Swift

    open var checkedIndexLabelSize: CGSize { get set }
  • checkedIndexLabel 的 margin,定位从每个 cell(即每张图片)的最右边开始计算

    Declaration

    Swift

    open var checkedIndexLabelMargins: UIEdgeInsets { get set }
  • checkedIndexLabel 的背景色

    Declaration

    Swift

    open var checkedIndexLabelBackgroundColor: UIColor? { get set }
  • 是否显示checkedIndexLabel,大小和checkboxButton保持一致

    Declaration

    Swift

    open var showsCheckedIndexLabel: Bool { get set }
  • 是否显示videoDurationLabel,默认YES

    Declaration

    Swift

    open var showsVideoDurationLabel: Bool { get set }
  • Undocumented

    Declaration

    Swift

    open var selectable: Bool { get set }
  • Undocumented

    Declaration

    Swift

    open var checked: Bool { get set }
  • Undocumented

    Declaration

    Swift

    open var disabled: Bool { get set }
  • Undocumented

    Declaration

    Swift

    open var checkedIndex: Int? { get set }
  • Cell 中对应资源的下载状态,这个值的变动会相应地调整 UI 表现

    Declaration

    Swift

    open var downloadStatus: AssetDownloadStatus { get set }
  • 当前这个 cell 正在展示的 Asset 的 identifier

    Declaration

    Swift

    open var assetIdentifier: String?
  • 蒙层视图

    Declaration

    Swift

    open lazy var coverView: UIView { get set }
  • 左下角图标视图,默认判断显示editedIconImage和videoIconImage

    Declaration

    Swift

    open lazy var iconImageView: UIImageView { get set }
  • Undocumented

    Declaration

    Swift

    open lazy var contentImageView: UIImageView { get set }
  • Undocumented

    Declaration

    Swift

    open lazy var checkboxButton: UIButton { get set }
  • Undocumented

    Declaration

    Swift

    open lazy var videoDurationLabel: UILabel { get set }
  • Undocumented

    Declaration

    Swift

    open lazy var checkedIndexLabel: UILabel { get set }
  • Undocumented

    Declaration

    Swift

    public override init(frame: CGRect)
  • Undocumented

    Declaration

    Swift

    public required init?(coder: NSCoder)
  • Undocumented

    Declaration

    Swift

    open override func layoutSubviews()
  • 渲染资源

    Declaration

    Swift

    open func render(asset: Asset, referenceSize: CGSize)