//
//  OnlineLearningTableViewCell.m
//  Lighting
//
//  Created by 曹云霄 on 2016/11/16.
//  Copyright © 2016年 上海勾芒科技有限公司. All rights reserved.
//

#import "OnlineLearningTableViewCell.h"

@implementation OnlineLearningTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    
    self.titleBackgroundView.backgroundColor = [[UIColor whiteColor] colorWithAlphaComponent:0.15];
}


- (void)setStudeType:(TOStudyTypeEntity *)studeType
{
    _studeType = studeType;
    [self.studyItemImageView sd_setImageWithURL:[NSURL URLWithString:_studeType.attachmentBg.fileUrl] placeholderImage:REPLACEIMAGE];
    [self.iconImageView sd_setImageWithURL:[NSURL URLWithString:_studeType.attachment.fileUrl] placeholderImage:REPLACEIMAGE];
    self.studyItemTitleLabel.text = _studeType.name;
}

@end
