SceneSectionHeaderView.m 1.52 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
//
//  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);
曹云霄's avatar
曹云霄 committed
28
        [self.sectionButton setTitleColor:RGB(170, 170, 170,1) forState:UIControlStateNormal];
勾芒's avatar
勾芒 committed
29 30
        self.sectionButton.titleLabel.font = [UIFont systemFontOfSize:13];
        [self.sectionButton setTitleColor:kMainBlueColor forState:UIControlStateSelected];
曹云霄's avatar
曹云霄 committed
31
        [self.sectionButton setBackgroundColor:RGB(255, 255, 255,1)];
32
        
勾芒's avatar
勾芒 committed
33 34 35 36
        [self addSubview:self.sectionButton];
        
        //横线
        UIView *lineView = [[UIView alloc]initWithFrame:CGRectMake(0, 54, 100, 1)];
曹云霄's avatar
曹云霄 committed
37
        lineView.backgroundColor = RGB(221, 221, 221,1);
勾芒's avatar
勾芒 committed
38
        [self addSubview:lineView];
勾芒's avatar
勾芒 committed
39 40 41
        
        //横线
        UIView *newLineView = [[UIView alloc]initWithFrame:CGRectMake(0, 0, 100, 1)];
曹云霄's avatar
曹云霄 committed
42
        newLineView.backgroundColor = RGB(221, 221, 221,1);
勾芒's avatar
勾芒 committed
43
        [self addSubview:newLineView];
勾芒's avatar
勾芒 committed
44 45 46 47 48 49 50 51 52 53 54 55
    }
    return self;
}








@end