// // titleLabelReusableView.m // 双子星云手机 // // Created by xd h on 2024/5/13. // #import "titleLabelReusableView.h" @implementation titleLabelReusableView - (id)initWithFrame:(CGRect)frame { self = [super initWithFrame:frame]; if (self) { [self drawAnyViewWithFrame:frame]; } return self; } - (void)drawAnyViewWithFrame:(CGRect)frame { _titlelabel = [[UILabel alloc] init]; _titlelabel.textColor = [UIColor blackColor]; _titlelabel.font = [UIFont boldSystemFontOfSize:14.0]; [self addSubview:_titlelabel]; [_titlelabel mas_makeConstraints:^(MASConstraintMaker *make) { make.left.mas_equalTo(15); make.right.mas_equalTo(0); make.height.mas_equalTo(20); make.centerY.mas_equalTo(0); }]; } @end