// // YOUPAILZChatRoomOthearSeatCell.m // VQU // // Created by CY on 2021/10/29. // Copyright © 2021 MS. All rights reserved. // #import "YOUPAILZChatRoomOthearSeatCell.h" @interface YOUPAILZChatRoomOthearSeatCell () @end @implementation YOUPAILZChatRoomOthearSeatCell - (instancetype)initWithFrame:(CGRect)frame{ if (self = [super initWithFrame:frame]) { [self youpaifinitUI]; } return self; } - (void)youpaifinitUI{ YOUPAILZChatRoomSeatView *youpaipseatView = [[YOUPAILZChatRoomSeatView alloc] initWithAvatarSize:CGSizeMake(54.0f, 54.0f)]; [self.contentView addSubview:youpaipseatView]; self.youpaipseatView = youpaipseatView; [youpaipseatView mas_makeConstraints:^(MASConstraintMaker *make) { make.centerX.equalTo(self.contentView); make.top.offset(0.0f); make.width.offset(60.0f); make.bottom.offset(0.0f); }]; } - (void)youpaifreloadWithModel:(YOUPAILZChatRoomSeatModel *)youpaipmodel{ self.youpaipseatView.youpaipmodel = youpaipmodel; } @end