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.
67 lines
1.8 KiB
67 lines
1.8 KiB
// |
|
// HAndTTableViewCell.m |
|
// LekangGuard |
|
// |
|
// Created by ecell on 2022/11/25. |
|
// |
|
|
|
#import "HAndTTableViewCell.h" |
|
|
|
@interface HAndTTableViewCell () |
|
|
|
@property (nonatomic ,weak) UILabel *rightLabel; |
|
|
|
@end |
|
|
|
@implementation HAndTTableViewCell |
|
|
|
|
|
- (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)setTextStr:(NSString *)textStr |
|
{ |
|
_textStr = textStr; |
|
self.rightLabel.text = textStr; |
|
} |
|
|
|
- (void)subCellView |
|
{ |
|
UILabel *titleLabel = [UICommon ui_label:CGRectZero lines:0 align:NSTextAlignmentRight font:FontADA_(15) textColor:KKTextBlackColor text:GJText(@"上报评率") Radius:0]; |
|
[self.contentView addSubview:titleLabel]; |
|
[titleLabel mas_makeConstraints:^(MASConstraintMaker *make) { |
|
make.left.equalTo(self.contentView).offset(15); |
|
make.centerY.equalTo(self.contentView); |
|
}]; |
|
|
|
UILabel *rightLabel = [UICommon ui_label:CGRectZero lines:0 align:NSTextAlignmentRight font:FontADA_(15) textColor:KKMainColor text:@"" Radius:0]; |
|
self.rightLabel = rightLabel; |
|
[self.contentView addSubview:rightLabel]; |
|
[rightLabel mas_makeConstraints:^(MASConstraintMaker *make) { |
|
make.right.equalTo(self.contentView.mas_right).inset(15); |
|
make.centerY.equalTo(self.contentView); |
|
}]; |
|
} |
|
|
|
- (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
|
|
|