1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- //
- // YOUPAIProfileCollectionCell.m
- // MSYOUPAI
- //
- // Created by xiaohaoran on 2022/3/1.
- // Copyright © 2022 MS. All rights reserved.
- //
- #import "YOUPAIProfileCollectionCell.h"
- @implementation YOUPAIProfileCollectionCell
- -(instancetype)initWithFrame:(CGRect)frame{
- self = [super initWithFrame:frame];
- if (self) {
-
-
- [self qxfsetSubView];
- }
- return self;
- }
- -(void)qxfsetSubView{
-
- // self.vqupmoneyImage = [UIImageView new];
- // [self.contentView addSubview:self.vqupmoneyImage];
- // [self.vqupmoneyImage mas_makeConstraints:^(MASConstraintMaker *make) {
- // make.top.mas_equalTo(9);
- // make.centerX.mas_equalTo(40);
- // make.height.mas_equalTo(16);
- // }];
- // self.vqupmoneyImage.contentMode = UIViewContentModeScaleAspectFit;
- //// self.vqupmoneyImage.image = [UIImage imageNamed:@"vqu_images_mine_money"];
-
- self.vqupiconImageView = [UIImageView new];
- [self.contentView addSubview:self.vqupiconImageView];
- [self.vqupiconImageView mas_makeConstraints:^(MASConstraintMaker *make) {
- make.top.mas_equalTo(self.contentView).offset(WHScreenEqualWidth(10));
- make.centerX.equalTo(self.contentView);
- make.width.mas_equalTo(WHScreenEqualWidth(44));
- make.height.mas_equalTo(WHScreenEqualWidth(44));
- }];
- self.vqupiconImageView.contentMode = UIViewContentModeScaleAspectFill;
- self.vqupiconImageView.clipsToBounds = YES;
- //title
- self.vqupTitleLabel = [UILabel new];
- [self.contentView addSubview:self.vqupTitleLabel];
- [self.vqupTitleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
- make.centerX.mas_equalTo(self.vqupiconImageView);
- make.top.mas_equalTo(self.vqupiconImageView.mas_bottom).offset(5);
- }];
- self.vqupTitleLabel.textColor = LZ273145Color;
- self.vqupTitleLabel.font = [UIFont systemFontOfSize:12];
- }
- @end
|