YOUPAILZChatRoomOthearSeatCell.m 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. //
  2. // YOUPAILZChatRoomOthearSeatCell.m
  3. // VQU
  4. //
  5. // Created by CY on 2021/10/29.
  6. // Copyright © 2021 MS. All rights reserved.
  7. //
  8. #import "YOUPAILZChatRoomOthearSeatCell.h"
  9. @interface YOUPAILZChatRoomOthearSeatCell ()
  10. @end
  11. @implementation YOUPAILZChatRoomOthearSeatCell
  12. - (instancetype)initWithFrame:(CGRect)frame{
  13. if (self = [super initWithFrame:frame]) {
  14. [self youpaifinitUI];
  15. }
  16. return self;
  17. }
  18. - (void)youpaifinitUI{
  19. YOUPAILZChatRoomSeatView *youpaipseatView = [[YOUPAILZChatRoomSeatView alloc] initWithAvatarSize:CGSizeMake(54.0f, 54.0f)];
  20. [self.contentView addSubview:youpaipseatView];
  21. self.youpaipseatView = youpaipseatView;
  22. [youpaipseatView mas_makeConstraints:^(MASConstraintMaker *make) {
  23. make.centerX.equalTo(self.contentView);
  24. make.top.offset(0.0f);
  25. make.width.offset(60.0f);
  26. make.bottom.offset(0.0f);
  27. }];
  28. }
  29. - (void)youpaifreloadWithModel:(YOUPAILZChatRoomSeatModel *)youpaipmodel{
  30. self.youpaipseatView.youpaipmodel = youpaipmodel;
  31. }
  32. @end