// // MarkTableViewCell.m // tongxin // // Created by ecell on 2021/6/10. // Copyright © 2021 xTT. All rights reserved. // #import "MarkTableViewCell.h" @implementation MarkTableViewCell - (void)awakeFromNib { [super awakeFromNib]; // Initialization code UIImageView *iconImg = [UIImageView new]; self.remarkImg = iconImg; [self.contentView addSubview:iconImg]; [iconImg mas_makeConstraints:^(MASConstraintMaker *make) { make.left.top.equalTo(self.contentView).offset(16); make.size.mas_equalTo(CGSizeMake(20, 20)); }]; UILabel *remarkType = [UICommon ui_label:CGRectZero lines:0 align:NSTextAlignmentCenter font:FontBold_(16) textColor:KKBlack20 text:@"" Radius:0]; self.remarkType = remarkType; [self.contentView addSubview:remarkType]; [remarkType mas_makeConstraints:^(MASConstraintMaker *make) { make.left.equalTo(iconImg.mas_right).offset(2); make.centerY.equalTo(iconImg); }]; UILabel *remarkContent = [UICommon ui_label:CGRectZero lines:0 align:NSTextAlignmentLeft font:Font_(12) textColor:KKGrey163 text:@"" Radius:0]; self.remarkContent = remarkContent; [self.contentView addSubview:remarkContent]; [remarkContent mas_makeConstraints:^(MASConstraintMaker *make) { make.left.right.equalTo(self.contentView).inset(16); make.top.equalTo(iconImg.mas_bottom).offset(6); }]; } - (void)setSelected:(BOOL)selected animated:(BOOL)animated { [super setSelected:selected animated:animated]; // Configure the view for the selected state } @end