|
|
|
//
|
|
|
|
// MarkExplainTableViewCell.m
|
|
|
|
// LekangGuard
|
|
|
|
//
|
|
|
|
// Created by ecell on 2022/12/12.
|
|
|
|
//
|
|
|
|
|
|
|
|
#import "MarkExplainTableViewCell.h"
|
|
|
|
|
|
|
|
@interface MarkExplainTableViewCell ()
|
|
|
|
|
|
|
|
@end
|
|
|
|
@implementation MarkExplainTableViewCell
|
|
|
|
|
|
|
|
|
|
|
|
- (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)subCellView
|
|
|
|
{
|
|
|
|
UIImageView *remarkImg = [UIImageView new];
|
|
|
|
self.remarkImg = remarkImg;
|
|
|
|
[self.contentView addSubview:remarkImg];
|
|
|
|
[remarkImg mas_makeConstraints:^(MASConstraintMaker *make) {
|
|
|
|
make.left.equalTo(self.contentView).offset(20);
|
|
|
|
make.top.equalTo(self.contentView).offset(15);
|
|
|
|
make.size.mas_equalTo(CGSizeMake(20, 20));
|
|
|
|
}];
|
|
|
|
|
|
|
|
UILabel *remarkType = [UICommon ui_label:CGRectZero lines:0 align:NSTextAlignmentLeft font:FontBold_(18) textColor:KKTextBlackColor text:@"" Radius:0];
|
|
|
|
self.remarkType = remarkType;
|
|
|
|
[self.contentView addSubview:remarkType];
|
|
|
|
[remarkType mas_makeConstraints:^(MASConstraintMaker *make) {
|
|
|
|
make.left.equalTo(remarkImg.mas_right).offset(10);
|
|
|
|
make.centerY.equalTo(remarkImg);
|
|
|
|
}];
|
|
|
|
|
|
|
|
UILabel *remarkContent = [UICommon ui_label:CGRectZero lines:0 align:NSTextAlignmentLeft font:Font_(14) textColor:KKGrey121 text:@"" Radius:0];
|
|
|
|
self.remarkContent = remarkContent;
|
|
|
|
[self.contentView addSubview:remarkContent];
|
|
|
|
[remarkContent mas_makeConstraints:^(MASConstraintMaker *make) {
|
|
|
|
make.left.right.equalTo(self.contentView).inset(20);
|
|
|
|
make.top.equalTo(remarkImg.mas_bottom).offset(10);
|
|
|
|
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
|