






#import "TabLocaleSpeedRatioGrammarCell.h"
#import "DenyQuarter.h"
#import "Masonry.h"

@implementation TabLocaleSpeedRatioGrammarCell

-(id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if(self){
        
        self.backgroundColor = UIColor.whiteColor;
        self.contentView.backgroundColor = UIColor.whiteColor;
        self.selectionStyle = UITableViewCellSelectionStyleNone;
        
        
        self.newtonsSheView = [UIImageView new];
        self.newtonsSheView.tintColor = [DenyQuarter sameAppleColor];
        self.newtonsSheView.layer.cornerRadius = 15;
        [self.contentView addSubview:self.newtonsSheView];
        [self.newtonsSheView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.mas_equalTo(DenyQuarter.nowPinReport.dayTransform);
            make.centerY.mas_equalTo(self);
            make.width.height.mas_equalTo(DenyQuarter.nowPinReport.metabolicHis);
        }];
        
        
        self.tipCrossName = [UILabel new];
        self.tipCrossName.font = [UIFont boldSystemFontOfSize:16];
        self.tipCrossName.textColor = UIColor.darkGrayColor;
        [self.contentView addSubview:self.tipCrossName];
        [self.tipCrossName mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(self.newtonsSheView.mas_right).offset(DenyQuarter.nowPinReport.dayTransform);
            make.bottom.equalTo(self.contentView.mas_centerY);
        }];
        
        
        self.napVoiceSonTime = [UILabel new];
        self.napVoiceSonTime.font =  [UIFont systemFontOfSize:11];
        self.napVoiceSonTime.textColor = UIColor.grayColor;
        [self.contentView addSubview:self.napVoiceSonTime];
        [self.napVoiceSonTime mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.equalTo(self.contentView.mas_centerY).offset(DenyQuarter.nowPinReport.postRadians);
            make.left.equalTo(self.tipCrossName);
        }];
    }
    return self;
}

@end
