123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- //
- // KXCalculateTableViewCell.m
- // QBCS
- //
- // Created by kuxuan on 2017/6/6.
- // Copyright © 2017年 kuxuan. All rights reserved.
- //
- #import "KXCalculateTableViewCell.h"
- @implementation KXCalculateTableViewCell
- {
- }
- -(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
- {
- if (self==[super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
- self.backgroundColor=[UIColor whiteColor];
- [self setupUI];
- }
- return self;
- }
- -(void)setupUI
- {
- _numberLabel=[[UILabel alloc]initWithFrame:CGRectMake(0, 0, 0.14*SCREEN_WIDTH, 54*SCREEN_MUTI)];
- _numberLabel.font=FONT_SYS(16);
- _numberLabel.textColor=[UIColor KXColorWithHex:0x666666];
- _numberLabel.textAlignment=NSTextAlignmentCenter;
- [self.contentView addSubview:_numberLabel];
-
- _capLabel=[[UILabel alloc]initWithFrame:CGRectMake(0.14*SCREEN_WIDTH, 0,0.30*SCREEN_WIDTH , 54*SCREEN_MUTI)];
- _capLabel.font=FONT_SYS(16);
- _capLabel.textColor=[UIColor KXColorWithHex:0x666666];
- _capLabel.textAlignment=NSTextAlignmentCenter;
- [self.contentView addSubview:_capLabel];
-
- _inteLabel=[[UILabel alloc]initWithFrame:CGRectMake(0.44*SCREEN_WIDTH, 0, 0.26*SCREEN_WIDTH, 54*SCREEN_MUTI)];
- _inteLabel.font=FONT_SYS(16);
- _inteLabel.textColor=[UIColor KXColorWithHex:0x666666];
- _inteLabel.textAlignment=NSTextAlignmentCenter;
- [self.contentView addSubview:_inteLabel];
-
- _totalsumLabel=[[UILabel alloc]initWithFrame:CGRectMake(0.7*SCREEN_WIDTH, 0, 0.3*SCREEN_WIDTH, 54*SCREEN_MUTI)];
- _totalsumLabel.font=FONT_SYS(16);
- _totalsumLabel.textColor=[UIColor KXColorWithHex:0x666666];
- _totalsumLabel.textAlignment=NSTextAlignmentCenter;
- [self.contentView addSubview:_totalsumLabel];
-
- UILabel *lineLabel=[[UILabel alloc]initWithFrame:CGRectMake(0, 54*SCREEN_MUTI, SCREEN_WIDTH, 1)];
- lineLabel.backgroundColor=[UIColor KXColorWithHex:0xf5f5f5];
- [self.contentView addSubview:lineLabel];
- }
- @end
|