// // ProblemTableViewCell.m // LekangGuard // // Created by ecell on 2022/12/30. // #import "ProblemTableViewCell.h" @interface ProblemTableViewCell () /// @property (nonatomic ,weak) UILabel *cenLabel; @end @implementation ProblemTableViewCell - (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier { self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]; if (self) { self.selectionStyle = UITableViewCellSelectionStyleNone; self.backgroundColor = KKWhiteColorColor; [self subCellView]; } return self; } - (void)setCenText:(NSString *)cenText { _cenText = cenText; self.cenLabel.text = cenText; } - (void)subCellView { UILabel *cenLabel = [UICommon ui_label:CGRectZero lines:0 align:NSTextAlignmentLeft font:FontADA_(12) textColor:KKTextBlackColor text:@"" Radius:0]; self.cenLabel = cenLabel; [self.contentView addSubview:cenLabel]; [cenLabel mas_makeConstraints:^(MASConstraintMaker *make) { make.left.right.equalTo(self.contentView).inset(15); make.top.equalTo(self.contentView.mas_top).offset(15); make.bottom.equalTo(self.contentView.mas_bottom).inset(15); }]; } - (void)awakeFromNib { [super awakeFromNib]; // Initialization code } - (void)setSelected:(BOOL)selected animated:(BOOL)animated { [super setSelected:selected animated:animated]; // Configure the view for the selected state } @end