CalibrationDetailCollectionCell.m 1.21 KB
Newer Older
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 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
//
//  CalibrationDetailCollectionCell.m
//  Lighting
//
//  Created by 曹云霄 on 2017/3/15.
//  Copyright © 2017年 上海勾芒科技有限公司. All rights reserved.
//

#import "CalibrationDetailCollectionCell.h"

@implementation CalibrationDetailCollectionCell


- (void)refreshCell:(CustomTOForumtypeEntity *)entity
{
    switch (entity.type) {
        case NotChoose:
        {
            [self timeLineNotChoose];
        }
            break;
        case Default:
        {
            [self timeLineDefauld];
        }
            break;
        case Selected:
        {
            [self timeLineSelected];
        }
            break;
            
        default:
            break;
    }
    self.monthLabel.text = entity.month;
}


#pragma mark -时间轴选中状态
- (void)timeLineSelected
{
    self.userInteractionEnabled = YES;
    self.monthLabel.textColor = RGB(2, 83, 212, 1);
}

#pragma mark -时间轴默认状态
- (void)timeLineDefauld
{
    self.userInteractionEnabled = YES;
    self.monthLabel.textColor = [UIColor blackColor];
}

#pragma mark -时间轴不可选状态
- (void)timeLineNotChoose
{
    self.userInteractionEnabled = NO;
曹云霄's avatar
曹云霄 committed
58
    self.monthLabel.textColor = [UIColor lightGrayColor];
59 60 61 62 63
}



@end