// // TitleHeaderFooterView.m // tongxin // // Created by ecell on 2022/11/10. // Copyright © 2022 xTT. All rights reserved. // #import "TitleHeaderFooterView.h" @implementation TitleHeaderFooterView - (instancetype)initWithReuseIdentifier:(NSString *)reuseIdentifier { self = [super initWithReuseIdentifier:reuseIdentifier]; if (self) { //self.backgroundView = [UIZD ui_imageView:self.bounds fileName:@""]; [self subheadView]; } return self; } - (void)subheadView { UIImageView *leftImg1 = [UIImageView new]; leftImg1.backgroundColor = mainColor; [self addSubview:leftImg1]; [leftImg1 mas_makeConstraints:^(MASConstraintMaker *make) { make.left.equalTo(self); make.top.equalTo(self).offset(15); make.size.mas_equalTo(CGSizeMake(3, 20)); }]; UILabel *titleLabel1 = [UILabel new]; titleLabel1.textColor = KKGrey143; titleLabel1.font = [UIFont fontWithName:@"HelveticaNeue" size:14]; titleLabel1.text = @"扫描设备"; [self addSubview:titleLabel1]; [titleLabel1 mas_makeConstraints:^(MASConstraintMaker *make) { make.left.equalTo(leftImg1.mas_right).offset(5); make.centerY.equalTo(leftImg1); }]; } /* // Only override drawRect: if you perform custom drawing. // An empty implementation adversely affects performance during animation. - (void)drawRect:(CGRect)rect { // Drawing code } */ @end