You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
57 lines
1.4 KiB
57 lines
1.4 KiB
1 year ago
|
//
|
||
|
// 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
|