YOUPAILZChatRoomNoticeContentCell.m 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. //
  2. // YOUPAILZChatRoomNoticeContentCell.m
  3. // VQU
  4. //
  5. // Created by CY on 2021/10/28.
  6. // Copyright © 2021 MS. All rights reserved.
  7. //
  8. #import "YOUPAILZChatRoomNoticeContentCell.h"
  9. @implementation YOUPAILZChatRoomNoticeContentCell
  10. - (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
  11. if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
  12. self.selectionStyle = UITableViewCellSelectionStyleNone;
  13. self.backgroundColor = [UIColor clearColor];
  14. [self youpaifinitUI];
  15. }
  16. return self;
  17. }
  18. - (void)youpaifinitUI{
  19. UILabel *contentL = [[UILabel alloc] init];
  20. contentL.textColor = [UIColor whiteColor];
  21. contentL.font = LCFont(12.0f);
  22. contentL.numberOfLines = 0;
  23. [self.contentView addSubview:contentL];
  24. self.youpaipcontentL = contentL;
  25. [contentL mas_makeConstraints:^(MASConstraintMaker *make) {
  26. make.left.offset(17.0f);
  27. make.top.offset(20.0f);
  28. make.right.offset(-17.0f);
  29. make.bottom.offset(-20.0f);
  30. }];
  31. }
  32. @end