






#import "YouMainRetDragCell.h"
#import "HealthWasWayInfo.h"
#import "Masonry.h"
#import "UIColor+MenColor.h"

@implementation YouMainRetDragCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
        self.backgroundColor = [UIColor clearColor];
        
        self.clipsToBounds = YES;
        
        [self addSubview:self.teacherLabel];
        
        [self.teacherLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.edges.mas_equalTo(UIEdgeInsetsMake(0, 4, 0, 0));
        }];
        
    }
    return self;
}

- (void)setModel:(HealthWasWayInfo *)model
{
    _model = model;
    _teacherLabel.text = model.rankReceived;
    _teacherLabel.font = [UIFont systemFontOfSize:model.ellipseStereoExtentMayCutDown];
    _teacherLabel.textColor = [UIColor nonceAtomicBalancedAdjustingFootballThin:model.powerDepartureStaleReceivingAdvisoryTemporal];
    self.backgroundColor = [[UIColor nonceAtomicBalancedAdjustingFootballThin:model.capturingLetterKernelVerboseAlternateFast] colorWithAlphaComponent:model.turnChlorideDigitalSecureArrivalSandbox];
    self.layer.cornerRadius = 2;
}

- (UILabel *)teacherLabel {
    if (!_teacherLabel) {
        _teacherLabel = [[UILabel alloc] init];
        _teacherLabel.backgroundColor = [UIColor clearColor];
        _teacherLabel.textAlignment = NSTextAlignmentLeft;
    }
    return _teacherLabel;
}

@end
