// // YOUPAILCCoinBtnCell.m // LiveChat // // Created by 张灿 on 2018/4/22. // Copyright © 2018年 caicai. All rights reserved. // #import "YOUPAILCCoinBtnCell.h" @implementation YOUPAILCCoinBtnCell - (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{ if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) { self.selectionStyle = UITableViewCellSelectionStyleNone; //v.1.5.6适配暗黑模式 [self.contentView setBackgroundColor:LCBkgColor]; [self youpaifinitUI]; } return self; } - (void)youpaifinitUI{ self.youpaipbaseView = [[UIView alloc]initWithFrame:CGRectMake(0,0,KScreenWidth,70)]; self.youpaipbaseView.backgroundColor = LCBkgColor; [self.contentView addSubview:self.youpaipbaseView]; [self.youpaipbaseView addLineWithColor:HexColorFromRGB(0x28262D) lineRect:CGRectMake(14.0f, 69.5f, KScreenWidth - 28.0f, 0.5f)]; self.youpaipheadLabel = [[UILabel alloc]init]; self.youpaipheadLabel.font = LCFont14; self.youpaipheadLabel.textColor = [UIColor whiteColor]; self.youpaipheadLabel.textAlignment = NSTextAlignmentLeft; [self.youpaipbaseView addSubview:self.youpaipheadLabel]; [self.youpaipheadLabel makeConstraints:^(MASConstraintMaker *make) { make.left.offset(14); make.centerY.equalTo(self.youpaipbaseView); }]; // self.dataLabel = [[UILabel alloc]init]; // self.dataLabel.font = LCBoldFont(17); // self.dataLabel.textColor = LCTextBlack; // self.dataLabel.textAlignment = NSTextAlignmentLeft; // [self.baseView addSubview:self.dataLabel]; // [self.dataLabel makeConstraints:^(MASConstraintMaker *make) { // make.left.equalTo(self.headLabel.right).offset(10); // make.top.equalTo(@18); // make.height.equalTo(@20); // // }]; self.youpaipfooterBtn = [[UIButton alloc]init]; self.youpaipfooterBtn.titleLabel.font = LCFont(12); [self.youpaipfooterBtn setTitleColor:LCWhiteColor forState:(UIControlStateNormal)]; self.youpaipfooterBtn.layer.cornerRadius = 11; self.youpaipfooterBtn.layer.masksToBounds = YES; [self.youpaipbaseView addSubview:self.youpaipfooterBtn]; [self.youpaipfooterBtn makeConstraints:^(MASConstraintMaker *make) { make.right.offset(-14.0f); make.centerY.equalTo(self.youpaipbaseView); make.size.mas_equalTo(CGSizeMake(64.0f,22)); }]; } @end