// // YOUPAIMessageEditHeaderView.m // MSYOUPAI // // Created by admin on 2022/3/11. // Copyright © 2022 MS. All rights reserved. // #import "YOUPAIMessageEditHeaderView.h" @implementation YOUPAIMessageEditHeaderView -(UILabel *)youpaiptitleLab{ if(_youpaiptitleLab == nil){ _youpaiptitleLab = [UILabel new]; _youpaiptitleLab.textColor = LZ273145Color; _youpaiptitleLab.font = LCFont14; } return _youpaiptitleLab; } -(UILabel *)youpaipremarkLab{ if(_youpaipremarkLab == nil){ _youpaipremarkLab = [UILabel new]; _youpaipremarkLab.font = LCFont12; _youpaipremarkLab.textColor = LZA3AABEColor; } return _youpaipremarkLab; } - (instancetype)initWithFrame:(CGRect)frame{ if(self == [super initWithFrame:frame]){ [self youpaifmakeUI]; [self youpaifmakeLayout]; } return self; } -(void)youpaifmakeUI{ [self addSubview:self.youpaiptitleLab]; [self addSubview:self.youpaipremarkLab]; } -(void)youpaifmakeLayout{ [_youpaiptitleLab mas_makeConstraints:^(MASConstraintMaker *make) { make.centerY.mas_equalTo(0); make.left.mas_equalTo(12); }]; [_youpaipremarkLab mas_makeConstraints:^(MASConstraintMaker *make) { make.centerY.mas_equalTo(self.youpaiptitleLab); make.left.mas_equalTo(self.youpaiptitleLab.mas_right).offset(4); }]; } @end