123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- //
- // 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
|