// // NewRegistCell.m // SERVICE // // Created by 肖雨 on 2017/8/12. // Copyright © 2017年 Luo. All rights reserved. // #import "NewRegistCell.h" @implementation NewRegistCell - (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{ self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]; if (self) { _title = [[UILabel alloc] init]; _title.font = NewFont(fitScreenWidth(14)); _title.textColor = NewBlackColor; [_title setSingleLineAutoResizeWithMaxWidth:0]; [self.contentView addSubview:_title]; _title.sd_layout .leftSpaceToView(self.contentView, 30) .bottomEqualToView(self.contentView) .topSpaceToView(self.contentView, 0) .heightIs(fitScreenWidth(30)); _areacode = [[UILabel alloc] init]; _areacode.text = @"+86"; _areacode.font = NewFont(fitScreenWidth(13)); _areacode.textColor = NewLightGrayColor; [self.contentView addSubview:_areacode]; _areacode.sd_layout .leftSpaceToView(self.contentView, 110) .centerYEqualToView(self.title) .heightIs(fitScreenWidth(30)); UILabel *line = [UILabel new]; line.backgroundColor = NewLineGrayColor; [self.contentView addSubview:line]; line.sd_layout .leftEqualToView(_title) .bottomEqualToView(self.contentView) .rightSpaceToView(self.contentView, 30) .heightIs(0.6); } 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