// // PaymentinformationCell.m // jitao // // Created by 罗云飞 on 2017/12/24. // Copyright © 2017年 罗云飞. All rights reserved. // #import "PaymentinformationCell.h" @implementation PaymentinformationCell - (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{ self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]; if (self) { UILabel *line = [UILabel new]; line.backgroundColor = NewLineGrayColor; [self.contentView addSubview:line]; line.sd_layout .leftEqualToView(self.contentView) .heightIs(10) .rightEqualToView(self.contentView) .topEqualToView(self.contentView); UILabel *line1 = [UILabel new]; line1.backgroundColor = NewButtonColor; ViewRadius(line1, 1); [self.contentView addSubview:line1]; line1.sd_layout .leftSpaceToView(self.contentView, 15) .topSpaceToView(line, 15) .heightIs(fitScreenWidth(18)) .widthIs(3); _title = [UILabel new]; _title.text = @"支付信息"; _title.font = NewFont(fitScreenWidth(14)); _title.lineBreakMode = NSLineBreakByTruncatingTail; _title.numberOfLines = 1; [self.contentView addSubview:_title]; _title.sd_layout .leftSpaceToView(line1, 10) .heightIs(fitScreenWidth(44)) .topSpaceToView(line, 0) .rightSpaceToView(self.contentView, 15); UILabel *line2 = [UILabel new]; line2.backgroundColor = NewLineGrayColor; [self.contentView addSubview:line2]; line2.sd_layout .leftEqualToView(self.contentView) .heightIs(0.8) .rightEqualToView(self.contentView) .topSpaceToView(line, fitScreenWidth(44)); _accountName = [UILabel new]; _accountName.text = [NSString stringWithFormat:@"开户姓名:%@",@"湖南科德信息咨询有限公司"]; _accountName.font = NewFont(fitScreenWidth(13)); [_accountName setSingleLineAutoResizeWithMaxWidth:0]; [self.contentView addSubview:_accountName]; _accountName.sd_layout .leftSpaceToView(self.contentView, 15) .heightIs(fitScreenWidth(13)) .topSpaceToView(line2, 15); _openingaccount = [UILabel new]; _openingaccount.text = [NSString stringWithFormat:@"开户账号:%@",@"1901 0021 0920 1021 475"]; _openingaccount.font = NewFont(fitScreenWidth(13)); [_openingaccount setSingleLineAutoResizeWithMaxWidth:0]; [self.contentView addSubview:_openingaccount]; _openingaccount.sd_layout .leftSpaceToView(self.contentView, 15) .heightIs(fitScreenWidth(13)) .topSpaceToView(_accountName, 15); _bank = [UILabel new]; _bank.text = [NSString stringWithFormat:@"开户行 :%@ ",@"工商银行长沙市展览馆支行"]; _bank.font = NewFont(fitScreenWidth(13)); [_bank setSingleLineAutoResizeWithMaxWidth:0]; [self.contentView addSubview:_bank]; _bank.sd_layout .leftSpaceToView(self.contentView, 15) .heightIs(fitScreenWidth(13)) .topSpaceToView(_openingaccount, 15); } return self; } - (void)awakeFromNib { [super awakeFromNib]; // Initialization code } - (void)setSelected:(BOOL)selected animated:(BOOL)animated { [super setSelected:selected animated:animated]; // Configure the view for the selected state } @end