// // ReleaseresultsCell.m // jitao // // Created by 罗云飞 on 2018/1/16. // Copyright © 2018年 罗云飞. All rights reserved. // #import "ReleaseresultsCell.h" @implementation ReleaseresultsCell - (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{ self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]; if (self) { _line = [UILabel new]; _line.backgroundColor = NewLineGrayColor; [self.contentView addSubview:_line]; _line.sd_layout .leftEqualToView(self.contentView) .heightIs(0.6) .rightEqualToView(self.contentView) .topEqualToView(self.contentView); _title = [UILabel new]; _title.font = NewFont(fitScreenWidth(12)); [_title setSingleLineAutoResizeWithMaxWidth:0]; [self.contentView addSubview:_title]; _title.sd_layout .leftSpaceToView(self.contentView, 15) .heightIs(fitScreenWidth(44)) .topSpaceToView(_line, 10); _view = [UIView new]; _view.backgroundColor = NewLineGrayColor; [self.contentView addSubview:_view]; ViewRadius(_view, 5); // _view.sd_layout // .leftSpaceToView(self.contentView, 60) // .rightSpaceToView(self.contentView, 15) // .bottomSpaceToView(self.contentView, 5) // .topSpaceToView(self.contentView, 10); _textfield = [NewControlPackage textFieldInitWithFrame:CGRectMake(0, 0, 0, 0) backgroundImage:nil backgroundColor:NewLineGrayColor textColor:NewGrayColor placeholder:@"请输入所在地" hidden:NO tag:100 font:NewFont(fitScreenWidth(12)) textAlignment:NSTextAlignmentLeft clearButtonMode:UITextFieldViewModeAlways clearsOnBeginEditing:NO adjustsFontSizeToFitWidth:NO secureTextEntry:NO keyboardType:UIKeyboardTypeDefault returnKeyType:UIReturnKeyDefault userInteractionEnabled:YES]; [_view addSubview:_textfield]; _textfield.sd_layout .leftSpaceToView(_view, 15) .topEqualToView(_view) .bottomEqualToView(_view) .rightEqualToView(_view); } 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