// // YOUPAILCWriteMesCell.m // VQU // // Created by 肖浩然的mac on 2021/8/3. // Copyright © 2021 leo. All rights reserved. // #import "YOUPAILCWriteMesCell.h" @implementation YOUPAILCWriteMesCell -(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{ if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) { [self youpaifsetSubView]; } return self; } -(void)youpaifsetSubView{ self.youpaiptitleLabel = [UILabel new]; [self.contentView addSubview:self.youpaiptitleLabel]; [self.youpaiptitleLabel mas_makeConstraints:^(MASConstraintMaker *make) { make.left.mas_equalTo(27); make.centerY.mas_equalTo(0); make.width.mas_equalTo(40); }]; self.youpaiptitleLabel.textColor = LZ273145Color; self.youpaiptitleLabel.font = [UIFont systemFontOfSize:16]; self.youpaiphintLabel = [UILabel new]; [self.contentView addSubview:self.youpaiphintLabel]; [self.youpaiphintLabel mas_makeConstraints:^(MASConstraintMaker *make) { make.left.mas_equalTo(self.youpaiptitleLabel.mas_right).offset(12); make.centerY.mas_equalTo(0); make.width.mas_equalTo(180); }]; self.youpaiphintLabel.font = [UIFont systemFontOfSize:16]; //arrow self.youpaiparrowImageView = [UIImageView new]; [self.contentView addSubview:self.youpaiparrowImageView]; [self.youpaiparrowImageView mas_makeConstraints:^(MASConstraintMaker *make) { make.right.mas_equalTo(-32); make.centerY.mas_equalTo(0); make.size.mas_equalTo(CGSizeMake(16, 16)); }]; self.youpaiparrowImageView.image = [UIImage imageNamed:@"vqu_images_H_cell_arrow_gray"]; UIView *viewLine =[UIView new]; [self.contentView addSubview:viewLine]; [viewLine mas_makeConstraints:^(MASConstraintMaker *make) { make.left.mas_equalTo(27); make.right.mas_equalTo(-27); make.bottom.mas_equalTo(0); make.height.mas_equalTo(0.5); }]; viewLine.backgroundColor = LZF5F4F7Color; } @end