// // YOUPAILZChatRoomEmojiCell.m // VQU // // Created by CY on 2021/11/11. // Copyright © 2021 MS. All rights reserved. // #import "YOUPAILZChatRoomEmojiCell.h" @interface YOUPAILZChatRoomEmojiCell () @property (nonatomic,weak)UIImageView *youpaipemojiImgV; @end @implementation YOUPAILZChatRoomEmojiCell - (instancetype)initWithFrame:(CGRect)frame{ if (self = [super initWithFrame:frame]) { [self youpaifinitUI]; } return self; } - (void)youpaifinitUI{ UIImageView *youpaipemojiImgV = [[UIImageView alloc] init]; youpaipemojiImgV.contentMode = UIViewContentModeScaleAspectFill; youpaipemojiImgV.layer.cornerRadius = 8.0f; youpaipemojiImgV.clipsToBounds = YES; [self.contentView addSubview:youpaipemojiImgV]; self.youpaipemojiImgV = youpaipemojiImgV; [youpaipemojiImgV mas_makeConstraints:^(MASConstraintMaker *make) { make.center.equalTo(self.contentView); make.size.mas_offset(CGSizeMake(77.0f, 77.0f)); }]; } - (void)youpaifreloadWithModel:(YOUPAILZChatRoomEmojiModel *)model{ [self.youpaipemojiImgV sd_setImageWithURL:[LCTools getImageUrlWithAddress:model.youpaipimg]]; } @end