// // CycleCollectionViewCell.m // IphoneBIMe // // Created by ZhangJF on 2022/10/28. // Copyright © 2022 ProBIM. All rights reserved. // #import "CycleCollectionViewCell.h" @interface CycleCollectionViewCell() @end @implementation CycleCollectionViewCell - (instancetype)initWithFrame:(CGRect)frame { if (self = [super initWithFrame:frame]) { [self setupUI]; } return self; } - (void)setupUI { UIImageView *imageV = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"Issue_list_add"]]; imageV.contentMode = UIViewContentModeScaleToFill; [self.contentView addSubview:imageV]; [imageV mas_makeConstraints:^(MASConstraintMaker *make) { make.top.bottom.left.right.equalTo(self.contentView); }]; self.imageV = imageV; } - (void)setImageUrl:(NSString *)imageUrl { // _imageV.image = [UIImage imageNamed:imageUrl]; [_imageV sd_setImageWithURL:[NSURL URLWithString:imageUrl] placeholderImage:[UIImage imageNamed:@"Doc_unable_preview"]]; } @end