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.
40 lines
1.1 KiB
40 lines
1.1 KiB
4 years ago
|
//
|
||
|
// TFSetBasicTableViewCell.m
|
||
|
// WXReader
|
||
|
//
|
||
|
// Created by 谢腾飞 on 2020/12/2.
|
||
|
// Copyright © 2020 xtfei_2011@126.com. All rights reserved.
|
||
|
//
|
||
|
|
||
|
#import "TFSetBasicTableViewCell.h"
|
||
|
|
||
|
@implementation TFSetBasicTableViewCell
|
||
|
|
||
|
- (void)createSubviews
|
||
|
{
|
||
|
[super createSubviews];
|
||
|
|
||
|
self.leftTitleLabel = [[UILabel alloc] init];
|
||
|
self.leftTitleLabel.font = kMainFont;
|
||
|
self.leftTitleLabel.textColor = kBlackColor;
|
||
|
self.leftTitleLabel.textAlignment = NSTextAlignmentLeft;
|
||
|
[self.contentView addSubview:self.leftTitleLabel];
|
||
|
|
||
|
[self.leftTitleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
|
||
|
make.left.mas_equalTo(self.contentView.mas_left).with.offset(kMargin);
|
||
|
make.top.mas_equalTo(self.contentView.mas_top);
|
||
|
make.right.mas_equalTo(self.contentView.mas_right).with.offset(- kMargin);
|
||
|
make.height.mas_equalTo(50);
|
||
|
make.bottom.mas_equalTo(self.contentView.mas_bottom).priorityLow();
|
||
|
}];
|
||
|
}
|
||
|
|
||
|
- (void)setLeftTitleText:(NSString *)leftTitleText
|
||
|
{
|
||
|
_leftTitleText = leftTitleText;
|
||
|
|
||
|
self.leftTitleLabel.text = leftTitleText;
|
||
|
}
|
||
|
|
||
|
@end
|