// // YOUPAILZSessionCommonWordCell.m // MSYOUPAI // // Created by CY on 2022/3/8. // Copyright © 2022 MS. All rights reserved. // #import "YOUPAILZSessionCommonWordCell.h" @interface YOUPAILZSessionCommonWordCell () @property (nonatomic, weak) UILabel *youpaiptextL; @end @implementation YOUPAILZSessionCommonWordCell - (instancetype)initWithFrame:(CGRect)frame{ if (self = [super initWithFrame:frame]) { [self youpaifinitUI]; } return self; } - (void)youpaifinitUI{ self.contentView.backgroundColor = [UIColor whiteColor]; self.contentView.layer.cornerRadius = 14.0f; self.contentView.clipsToBounds = YES; UILabel *youpaiptextL = [[UILabel alloc] init]; youpaiptextL.font = LCFont(12.0f); youpaiptextL.textColor = LZ273145Color; [self.contentView addSubview:youpaiptextL]; self.youpaiptextL = youpaiptextL; [youpaiptextL mas_makeConstraints:^(MASConstraintMaker *make) { make.left.offset(8.0f); make.right.offset(-8.0f); make.centerY.equalTo(self.contentView); }]; } - (void)youpaifreloadWithModel:(YOUPAILZIMCommonWordModel *)model{ self.youpaiptextL.text = model.youpaipword; } @end