// // BiaoqianCell.m // jitao // // Created by 罗云飞 on 2018/1/19. // Copyright © 2018年 罗云飞. All rights reserved. // #import "BiaoqianCell.h" @implementation BiaoqianCell - (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{ self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]; if (self) { _title = [UILabel new]; _title.font = NewFont(fitScreenWidth(12)); [_title setSingleLineAutoResizeWithMaxWidth:0]; _title.text = @"标签"; [self.contentView addSubview:_title]; _title.sd_layout .leftSpaceToView(self.contentView, 15) .heightIs(fitScreenWidth(44)) .topSpaceToView(self.contentView, 10); UIView *view1 = [UIView new]; view1.backgroundColor = NewLineGrayColor; [self.contentView addSubview:view1]; view1.sd_layout .leftSpaceToView(self.contentView, 60) .widthIs((SCREEN_WIDTH-95)/3) .bottomSpaceToView(self.contentView, 5) .topSpaceToView(self.contentView, 10); UIView *view2 = [UIView new]; view2.backgroundColor = NewLineGrayColor; [self.contentView addSubview:view2]; view2.sd_layout .leftSpaceToView(view1, 10) .widthIs((SCREEN_WIDTH-95)/3) .bottomSpaceToView(self.contentView, 5) .topSpaceToView(self.contentView, 10); UIView *view3 = [UIView new]; view3.backgroundColor = NewLineGrayColor; [self.contentView addSubview:view3]; view3.sd_layout .leftSpaceToView(view2, 10) .widthIs((SCREEN_WIDTH-95)/3) .bottomSpaceToView(self.contentView, 5) .topSpaceToView(self.contentView, 10); _textfield1 = [NewControlPackage textFieldInitWithFrame:CGRectMake(0, 0, 0, 0) backgroundImage:nil backgroundColor:NewLineGrayColor textColor:NewGrayColor placeholder:@"标签" hidden:NO tag:101 font:NewFont(fitScreenWidth(12)) textAlignment:NSTextAlignmentCenter clearButtonMode:UITextFieldViewModeNever clearsOnBeginEditing:NO adjustsFontSizeToFitWidth:NO secureTextEntry:NO keyboardType:UIKeyboardTypeDefault returnKeyType:UIReturnKeyDefault userInteractionEnabled:YES]; [view1 addSubview:_textfield1]; _textfield1.sd_layout .leftSpaceToView(view1, 0) .topEqualToView(view1) .bottomEqualToView(view1) .rightEqualToView(view1); _textfield2 = [NewControlPackage textFieldInitWithFrame:CGRectMake(0, 0, 0, 0) backgroundImage:nil backgroundColor:NewLineGrayColor textColor:NewGrayColor placeholder:@"标签" hidden:NO tag:102 font:NewFont(fitScreenWidth(12)) textAlignment:NSTextAlignmentCenter clearButtonMode:UITextFieldViewModeNever clearsOnBeginEditing:NO adjustsFontSizeToFitWidth:NO secureTextEntry:NO keyboardType:UIKeyboardTypeDefault returnKeyType:UIReturnKeyDefault userInteractionEnabled:YES]; [view2 addSubview:_textfield2]; _textfield2.sd_layout .leftSpaceToView(view2, 0) .topEqualToView(view2) .bottomEqualToView(view2) .rightEqualToView(view2); _textfield3 = [NewControlPackage textFieldInitWithFrame:CGRectMake(0, 0, 0, 0) backgroundImage:nil backgroundColor:NewLineGrayColor textColor:NewGrayColor placeholder:@"标签" hidden:NO tag:103 font:NewFont(fitScreenWidth(12)) textAlignment:NSTextAlignmentCenter clearButtonMode:UITextFieldViewModeNever clearsOnBeginEditing:NO adjustsFontSizeToFitWidth:NO secureTextEntry:NO keyboardType:UIKeyboardTypeDefault returnKeyType:UIReturnKeyDefault userInteractionEnabled:YES]; [view3 addSubview:_textfield3]; _textfield3.sd_layout .leftSpaceToView(view3, 0) .topEqualToView(view3) .bottomEqualToView(view3) .rightEqualToView(view3); } 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