// // YOUPAIZYUserZiLiaoGRXXContentCell.m // MSYOUPAI // // Created by xiaohaoran on 2022/3/4. // Copyright © 2022 MS. All rights reserved. // #import "YOUPAIZYUserZiLiaoGRXXContentCell.h" @implementation YOUPAIZYUserZiLiaoGRXXContentCell -(instancetype)initWithFrame:(CGRect)frame{ self = [super initWithFrame:frame]; if (self) { [self youpaifsetSubView]; } return self; } -(void)youpaifsetSubView{ //bg UIView *bgView = [UIView new]; [self.contentView addSubview:bgView]; [bgView mas_makeConstraints:^(MASConstraintMaker *make) { make.edges.mas_equalTo(0); }]; bgView.backgroundColor = LZFAFAFCColor; bgView.layer.cornerRadius = 8; bgView.clipsToBounds = YES; //标题 self.youpaiTitle = [UILabel new]; [bgView addSubview:self.youpaiTitle]; [self.youpaiTitle mas_makeConstraints:^(MASConstraintMaker *make) { make.left.mas_equalTo(8); make.top.mas_equalTo(8); make.height.mas_equalTo(12); }]; self.youpaiTitle.textColor = LZA3AABEColor; self.youpaiTitle.font = [UIFont systemFontOfSize:10]; self.youpaiTitle.text = @"性别"; //内容 self.youpaiContent = [UILabel new]; [bgView addSubview:self.youpaiContent]; [self.youpaiContent mas_makeConstraints:^(MASConstraintMaker *make) { make.left.mas_equalTo(8); make.top.mas_equalTo(self.youpaiTitle.mas_bottom).offset(6); }]; self.youpaiContent.textColor = LZ273145Color; self.youpaiContent.font = [UIFont systemFontOfSize:12]; self.youpaiContent.text = @"女"; //拷贝按钮 self.youpaicopyBtn = [UIButton new]; [bgView addSubview:self.youpaicopyBtn]; [self.youpaicopyBtn mas_makeConstraints:^(MASConstraintMaker *make) { make.left.mas_equalTo(self.youpaiContent.mas_right).offset(2); make.centerY.mas_equalTo(self.youpaiContent); make.size.mas_equalTo(CGSizeMake(12, 12)); }]; [self.youpaicopyBtn setBackgroundImage:[UIImage imageNamed:@"vqu_images_ZY_copy"] forState:UIControlStateNormal]; } @end