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.
 

53 lines
1.5 KiB

//
// TFSetNormalTableViewCell.m
// WXReader
//
// Created by 谢腾飞 on 2020/12/2.
// Copyright © 2020 xtfei_2011@126.com. All rights reserved.
//
#import "TFSetNormalTableViewCell.h"
@interface TFSetNormalTableViewCell ()
{
UILabel *rightTitleLabel;
}
@end
@implementation TFSetNormalTableViewCell
- (void)createSubviews
{
[super createSubviews];
UIImageView *connerImage = [[UIImageView alloc] init];
connerImage.image = [UIImage imageNamed:@"public_more"];
[self.contentView addSubview:connerImage];
[connerImage mas_makeConstraints:^(MASConstraintMaker *make) {
make.right.mas_equalTo(self.contentView.mas_right).with.offset(- kMargin);
make.centerY.mas_equalTo(self.contentView.mas_centerY);
make.width.height.mas_equalTo(10);
}];
rightTitleLabel = [[UILabel alloc] init];
rightTitleLabel.font = kFont12;
rightTitleLabel.textColor = kGrayTextColor;
rightTitleLabel.textAlignment = NSTextAlignmentRight;
[self.contentView addSubview:rightTitleLabel];
[rightTitleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.mas_equalTo(self.contentView.mas_centerX);
make.centerY.mas_equalTo(self.contentView.mas_centerY);
make.right.mas_equalTo(connerImage.mas_left).with.offset(- 5);
make.height.mas_equalTo(self.leftTitleLabel.mas_height);
}];
}
- (void)setRightTitleText:(NSString *)rightTitleText
{
rightTitleLabel.text = rightTitleText;
}
@end