// // FKPriceWarnConfirmCell.m // FirstLink // // Created by jack on 16/5/26. // Copyright © 2016年 FirstLink. All rights reserved. // #import "FKPriceWarnConfirmCell.h" @implementation FKPriceWarnConfirmCell - (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{ if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) { [self addAllSubviews]; self.selectionStyle = UITableViewCellSelectionStyleNone; self.backgroundView = nil; self.backgroundColor = [UIColor clearColor]; } return self; } - (void)addAllSubviews{ [self.contentView addSubview:self.confirmBtn]; [self.confirmBtn mas_makeConstraints:^(MASConstraintMaker *make) { make.center.equalTo(self.contentView); make.size.mas_equalTo(CGSizeMake(UISCREENWIDTH - 70, 45)); }]; } - (UIButton *)confirmBtn{ if (_confirmBtn == nil) { _confirmBtn = [UIButton buttonWithType:UIButtonTypeCustom]; [_confirmBtn setTitle:@"确 定" forState:UIControlStateNormal]; [_confirmBtn setTitleColor:UIColorFromRGB(0xffffff) forState:UIControlStateNormal]; _confirmBtn.titleLabel.font = [UIFont systemFontOfSize:18]; _confirmBtn.backgroundColor = UIColorFromRGB(0xff6362); _confirmBtn.layer.cornerRadius = 5.0f; _confirmBtn.layer.masksToBounds = YES; } return _confirmBtn; } @end