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.
71 lines
2.0 KiB
71 lines
2.0 KiB
![]()
2 years ago
|
//
|
||
|
// 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(8);
|
||
|
make.size.mas_equalTo(CGSizeMake(40, 40));
|
||
|
}];
|
||
|
|
||
|
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);
|
||
|
|
||
|
}];
|
||
|
}
|
||
|
|
||
|
- (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
|