// // YOUPAIZYUserZiLiaoBHPhotoCell.m // VQU // // Created by 肖浩然的mac on 2021/7/10. // Copyright © 2021 leo. All rights reserved. // #import "YOUPAIZYUserZiLiaoBHPhotoCell.h" @implementation YOUPAIZYUserZiLiaoBHPhotoCell -(instancetype)initWithFrame:(CGRect)frame{ self = [super initWithFrame:frame]; if (self) { [self youpaifsetSubView]; } return self; } -(void)youpaifsetSubView{ self.youpaipiconImageView = [UIImageView new]; [self.contentView addSubview:self.youpaipiconImageView]; [self.youpaipiconImageView mas_makeConstraints:^(MASConstraintMaker *make) { make.left.mas_equalTo(0); make.right.mas_equalTo(0); make.top.mas_equalTo(0); make.height.mas_equalTo(63); }]; self.youpaipiconImageView.contentMode = UIViewContentModeScaleAspectFill; self.youpaipiconImageView.clipsToBounds = YES; self.youpaipiconImageView.layer.cornerRadius = 21; self.youpaipiconImageView.layer.masksToBounds = YES; self.youpaipNameLabel = [UILabel new]; [self.contentView addSubview:self.youpaipNameLabel]; [self.youpaipNameLabel mas_makeConstraints:^(MASConstraintMaker *make) { make.centerX.mas_equalTo(self.youpaipiconImageView); make.width.mas_equalTo(50); make.height.mas_equalTo(12); make.top.mas_equalTo(self.youpaipiconImageView.mas_bottom).offset(5); }]; self.youpaipNameLabel.textAlignment = NSTextAlignmentCenter; self.youpaipNameLabel.font = [UIFont systemFontOfSize:10]; self.youpaipNameLabel.textColor = LZA3AABEColor; self.youpaipNumLabel = [UILabel new]; [self.contentView addSubview:self.youpaipNumLabel]; [self.youpaipNumLabel mas_makeConstraints:^(MASConstraintMaker *make) { make.centerX.mas_equalTo(self.youpaipiconImageView); make.width.mas_equalTo(50); make.height.mas_equalTo(15); make.top.mas_equalTo(self.youpaipNameLabel.mas_bottom).offset(1); }]; self.youpaipNumLabel.textAlignment = NSTextAlignmentCenter; self.youpaipNumLabel.font = LCBoldFont(12); self.youpaipNumLabel.textColor = LZ273145Color; } @end