SceneSectionHeaderView.m 1.45 KB
Newer Older
勾芒's avatar
勾芒 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
//
//  SceneSectionHeaderView.m
//  Lighting
//
//  Created by 曹云霄 on 16/6/2.
//  Copyright © 2016年 上海勾芒科技有限公司. All rights reserved.
//

#import "SceneSectionHeaderView.h"

@implementation SceneSectionHeaderView

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/


- (instancetype)initWithReuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithReuseIdentifier:reuseIdentifier]) {
        
        self.sectionButton = [UIButton buttonWithType:UIButtonTypeCustom];
        self.sectionButton.frame = CGRectMake(0, 0, 100, 55);
        [self.sectionButton setTitleColor:kTCColor(170, 170, 170) forState:UIControlStateNormal];
        self.sectionButton.titleLabel.font = [UIFont systemFontOfSize:13];
        [self.sectionButton setTitleColor:kMainBlueColor forState:UIControlStateSelected];
        [self addSubview:self.sectionButton];
        
        //横线
        UIView *lineView = [[UIView alloc]initWithFrame:CGRectMake(0, 54, 100, 1)];
        lineView.backgroundColor = kTCColor(221, 221, 221);
        [self addSubview:lineView];
勾芒's avatar
勾芒 committed
37 38 39 40 41
        
        //横线
        UIView *newLineView = [[UIView alloc]initWithFrame:CGRectMake(0, 0, 100, 1)];
        newLineView.backgroundColor = kTCColor(221, 221, 221);
        [self addSubview:newLineView];
勾芒's avatar
勾芒 committed
42 43 44 45 46 47 48 49 50 51 52 53
    }
    return self;
}








@end