QMUIImagePickerCollectionViewCell

@interface QMUIImagePickerCollectionViewCell : UICollectionViewCell

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

  • 收藏的资源的心形图片

    Declaration

    Objective-C

    @property (nonatomic, strong) UIImage *favoriteImage;

    Swift

    var favoriteImage: UIImage! { get set }
  • 收藏的资源的心形图片的上下左右间距,相对于 cell 左下角零点而言,也即如果 left 越大则越往右,bottom 越大则越往上,另外 top 会影响底部遮罩的高度

    Declaration

    Objective-C

    @property (nonatomic) UIEdgeInsets favoriteImageMargins;

    Swift

    var favoriteImageMargins: UIEdgeInsets { get set }
  • checkbox 未被选中时显示的图片

    Declaration

    Objective-C

    @property (nonatomic, strong) UIImage *checkboxImage;

    Swift

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

    Declaration

    Objective-C

    @property (nonatomic, strong) UIImage *checkboxCheckedImage;

    Swift

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

    Declaration

    Objective-C

    @property (nonatomic) UIEdgeInsets checkboxButtonMargins;

    Swift

    var checkboxButtonMargins: UIEdgeInsets { get set }
  • videoDurationLabel 的字号

    Declaration

    Objective-C

    @property (nonatomic, strong) UIFont *videoDurationLabelFont;

    Swift

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

    Declaration

    Objective-C

    @property (nonatomic, strong) UIColor *videoDurationLabelTextColor;

    Swift

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

    Declaration

    Objective-C

    @property (nonatomic) UIEdgeInsets videoDurationLabelMargins;

    Swift

    var videoDurationLabelMargins: UIEdgeInsets { get set }
  • Undocumented

    Declaration

    Objective-C

    @property(nonatomic, strong, readonly) UIImageView *contentImageView

    Swift

    var contentImageView: UIImageView! { get }
  • Undocumented

    Declaration

    Objective-C

    @property(nonatomic, strong, readonly) UIImageView *favoriteImageView

    Swift

    var favoriteImageView: UIImageView! { get }
  • Undocumented

    Declaration

    Objective-C

    @property(nonatomic, strong, readonly) QMUIButton *checkboxButton

    Swift

    var checkboxButton: QMUIButton! { get }
  • Undocumented

    Declaration

    Objective-C

    @property(nonatomic, strong, readonly) UILabel *videoDurationLabel

    Swift

    var videoDurationLabel: UILabel! { get }
  • Undocumented

    Declaration

    Objective-C

    @property(nonatomic, strong, readonly) CAGradientLayer *bottomShadowLayer

    Swift

    var bottomShadowLayer: CAGradientLayer! { get }
  • Undocumented

    Declaration

    Objective-C

    @property(nonatomic, assign, getter=isSelectable) BOOL selectable

    Swift

    var isSelectable: Bool { get set }
  • Undocumented

    Declaration

    Objective-C

    @property(nonatomic, assign, getter=isChecked) BOOL checked

    Swift

    var isChecked: Bool { get set }
  • Undocumented

    Declaration

    Objective-C

    @property(nonatomic, assign) QMUIAssetDownloadStatus downloadStatus

    Swift

    var downloadStatus: Int32 { get set }
  • Undocumented

    Declaration

    Objective-C

    @property(nonatomic, copy) NSString *assetIdentifier

    Swift

    var assetIdentifier: String! { get set }
  • Undocumented

    Declaration

    Objective-C

    - (void)renderWithAsset:(QMUIAsset *)asset referenceSize:(CGSize)referenceSize;

    Swift

    func render(withAsset asset: Any!, referenceSize: CGSize)