// // PersonCell.m // Haishenghai-master // // Created by GG on 2019/1/13. // Copyright © 2019年 Haishenghai intelligence network technology. All rights reserved. // #import "PersonCell.h" @implementation PersonCell -(id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{ if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) { _nameLabel = [[UILabel alloc]initWithFrame:CGRectMake(20, 5, 80, 44)]; [self.contentView addSubview:_nameLabel]; _phoneLabel = [[UILabel alloc]init]; _phoneLabel.textColor = [UIColor blackColor]; [self.contentView addSubview:_phoneLabel]; _phoneLabel.frame = CGRectMake(70, 5, [UIScreen mainScreen].bounds.size.width-70, 44); _deleteButton.frame = CGRectMake([UIScreen mainScreen].bounds.size.width-64, 12, 20, 20); _deleteButton = [UIButton buttonWithType:UIButtonTypeCustom]; [_deleteButton setBackgroundImage:[UIImage imageNamed:@"hsh_login_delete"] forState:UIControlStateNormal]; [self.contentView addSubview:_deleteButton]; } return self; } //-(void)layoutSubviews{ // _phoneLabel.frame = CGRectMake(20, 5, [UIScreen mainScreen].bounds.size.width, 44); // // _deleteButton.frame = CGRectMake([UIScreen mainScreen].bounds.size.width-64, 12, 20, 20); //} - (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