38 lines
934 B
Objective-C
38 lines
934 B
Objective-C
//
|
|
// QXSearchHeaderReusableView.m
|
|
// QXLive
|
|
//
|
|
// Created by 启星 on 2025/9/29.
|
|
//
|
|
|
|
#import "QXSearchHeaderReusableView.h"
|
|
@interface QXSearchHeaderReusableView()
|
|
@property (nonatomic,strong)UILabel *titleLabel;
|
|
@end
|
|
@implementation QXSearchHeaderReusableView
|
|
- (instancetype)initWithFrame:(CGRect)frame
|
|
{
|
|
self = [super initWithFrame:frame];
|
|
if (self) {
|
|
[self initSubviews];
|
|
}
|
|
return self;
|
|
}
|
|
-(void)setTitle:(NSString *)title{
|
|
_title = title;
|
|
self.titleLabel.text = title;
|
|
}
|
|
|
|
-(void)initSubviews{
|
|
self.titleLabel = [[UILabel alloc] init];
|
|
self.titleLabel.font = [UIFont boldSystemFontOfSize:16];
|
|
self.titleLabel.textColor = RGB16(0x333333);
|
|
[self addSubview:self.titleLabel];
|
|
[self.titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
|
|
make.left.mas_equalTo(16);
|
|
make.height.mas_equalTo(24);
|
|
make.bottom.equalTo(self).offset(-8);
|
|
}];
|
|
}
|
|
@end
|