






#import "BinCarBinAdoptCell.h"
#import "CountDenyPutInfo.h"
#import "Masonry.h"
#import "UIColor+AnyColor.h"

@implementation BinCarBinAdoptCell

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

- (void)setModel:(CountDenyPutInfo *)model
{
    _model = model;
    _holdTheLabel.text = model.rearSubMight;
    _holdTheLabel.font = [UIFont systemFontOfSize:model.adapterPortraitsProblemShakeDivideWarn];
    _holdTheLabel.textColor = [UIColor didGramTowerBundleArrangedDisplays:model.driveRestPenModelWireLandscape];
    self.backgroundColor = [[UIColor didGramTowerBundleArrangedDisplays:model.pickEightHeightFlashGuestGravity] colorWithAlphaComponent:model.listenFragmentMergeChildrenExceedsNap];
    self.layer.cornerRadius = 2;
}

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

@end
