You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
61 lines
1.5 KiB
61 lines
1.5 KiB
// |
|
// 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
|
|
|