// // YOUPAIHRSearchHeaderCell.m // VQU // // Created by xiaohaoran on 2021/11/9. // Copyright © 2021 MS. All rights reserved. // #import "YOUPAIHRSearchHeaderCell.h" @implementation YOUPAIHRSearchHeaderCell - (instancetype)initWithFrame:(CGRect)frame { self = [super initWithFrame:frame]; if (self) { [self youpaifinitUI]; } return self; } - (void)youpaifinitUI{ self.contentView.layer.cornerRadius = self.contentView.size.height/2.0; self.contentView.layer.masksToBounds = YES; UILabel *youpaiptitleBtn = [UILabel new]; self.youpaiptitleBtn = youpaiptitleBtn; [self.contentView addSubview:youpaiptitleBtn]; [youpaiptitleBtn mas_makeConstraints:^(MASConstraintMaker *make) { make.top.bottom.offset(0.0f); make.left.mas_equalTo(6); make.right.mas_equalTo(-6); }]; youpaiptitleBtn.font = [UIFont systemFontOfSize:12]; youpaiptitleBtn.layer.cornerRadius = 12.5; youpaiptitleBtn.layer.masksToBounds = YES; youpaiptitleBtn.textAlignment = NSTextAlignmentCenter; youpaiptitleBtn.lineBreakMode = NSLineBreakByTruncatingTail; youpaiptitleBtn.backgroundColor = HexColorFromRGBA(0xA3AABE, 0.1); } -(void)setYoupaipnameStr:(NSString *)youpaipnameStr{ _youpaipnameStr = youpaipnameStr; self.youpaiptitleBtn.text = youpaipnameStr; self.youpaiptitleBtn.textColor = LZ273145Color; } @end