YOUPAILZChatRoomNoticeTitleCell.m 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  1. //
  2. // YOUPAILZChatRoomNoticeTitleCell.m
  3. // VQU
  4. //
  5. // Created by CY on 2021/10/28.
  6. // Copyright © 2021 MS. All rights reserved.
  7. //
  8. #import "YOUPAILZChatRoomNoticeTitleCell.h"
  9. @implementation YOUPAILZChatRoomNoticeTitleCell
  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 *youpaiptitleL = [[UILabel alloc] init];
  20. youpaiptitleL.textColor = [UIColor whiteColor];
  21. youpaiptitleL.font = LCFont(18.0f);
  22. [self.contentView addSubview:youpaiptitleL];
  23. self.youpaiptitleL = youpaiptitleL;
  24. [youpaiptitleL mas_makeConstraints:^(MASConstraintMaker *make) {
  25. make.left.offset(17.0f);
  26. make.top.offset(20.0f);
  27. make.right.offset(-17.0f);
  28. make.bottom.offset(0.0f);
  29. }];
  30. }
  31. @end