// // YOUPAILZCommonWordCell.m // MSYOUPAI // // Created by CY on 2022/3/8. // Copyright © 2022 MS. All rights reserved. // #import "YOUPAILZCommonWordCell.h" @interface YOUPAILZCommonWordCell () @property (nonatomic, weak) UILabel *youpaipTitleL; @end @implementation YOUPAILZCommonWordCell - (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{ if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) { self.selectionStyle = UITableViewCellSelectionStyleNone; [self youpaifinitUI]; } return self; } - (void)youpaifinitUI{ UIImageView *arrowImgView = [[UIImageView alloc]init]; arrowImgView.contentMode = UIViewContentModeScaleAspectFill; arrowImgView.image = [UIImage imageNamed:@"vqu_images_H_cell_arrow_gray"]; [self.contentView addSubview:arrowImgView]; [arrowImgView makeConstraints:^(MASConstraintMaker *make) { make.right.equalTo(-12.0f); make.centerY.equalTo(self.contentView); make.size.mas_equalTo(CGSizeMake(11, 11)); }]; UILabel *youpaipTitleL = [[UILabel alloc] init]; youpaipTitleL.textColor = LZ273145Color; youpaipTitleL.font = LCFont14; youpaipTitleL.numberOfLines = 2; [self.contentView addSubview:youpaipTitleL]; self.youpaipTitleL = youpaipTitleL; [youpaipTitleL mas_makeConstraints:^(MASConstraintMaker *make) { make.left.offset(12.0f); make.centerY.equalTo(self.contentView); make.right.equalTo(arrowImgView.mas_left).offset(-12.0f); }]; [self.contentView addLineWithColor:LZF5F4F7Color lineRect:CGRectMake(12.0f, 53.5f, KScreenWidth - 24.0f, 0.5f)]; } - (void)youpaifreloadWithModel:(YOUPAILZIMCommonWordModel *)model{ self.youpaipTitleL.text = model.youpaipword; } @end