// // ChatNewRowCell.m // smartRhino // // Created by niuzhen on 2019/12/10. // Copyright © 2019 tederen. All rights reserved. // #import "ChatNewRowCell.h" @implementation ChatNewRowCell - (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 } + (CGFloat)configCell0Height{ return 50; } + (CGFloat)configCell1Height{ return 65; } + (CGFloat)configCell2Height{ return 65; } + (ChatNewRowCell *)configCell0:(UITableView *)tableView indexPath:(NSIndexPath *)indexPath{ static NSString *cellIdentifer = @"ChatNewRowCell0"; ChatNewRowCell *cell = [tableView dequeueReusableCellWithIdentifier:cellIdentifer]; if (cell == nil) { cell = [[[NSBundle mainBundle] loadNibNamed:@"ChatNewRowCell" owner:nil options:nil] objectAtIndex:0]; } cell.selectionStyle = UITableViewCellSelectionStyleNone; cell.cell0SearchBgView.layer.masksToBounds = YES; cell.cell0SearchBgView.layer.cornerRadius = 15; cell.cell0SearchBgView.backgroundColor = RGB(245, 246, 248); return cell; } + (ChatNewRowCell *)configCell1:(UITableView *)tableView indexPath:(NSIndexPath *)indexPath{ static NSString *cellIdentifer = @"ChatNewRowCell1"; ChatNewRowCell *cell = [tableView dequeueReusableCellWithIdentifier:cellIdentifer]; if (cell == nil) { cell = [[[NSBundle mainBundle] loadNibNamed:@"ChatNewRowCell" owner:nil options:nil] objectAtIndex:1]; } cell.selectionStyle = UITableViewCellSelectionStyleNone; return cell; } + (ChatNewRowCell *)configCell2:(UITableView *)tableView indexPath:(NSIndexPath *)indexPath{ static NSString *cellIdentifer = @"ChatNewRowCell2"; ChatNewRowCell *cell = [tableView dequeueReusableCellWithIdentifier:cellIdentifer]; if (cell == nil) { cell = [[[NSBundle mainBundle] loadNibNamed:@"ChatNewRowCell" owner:nil options:nil] objectAtIndex:2]; } cell.selectionStyle = UITableViewCellSelectionStyleNone; cell.cell2TimeLabel.hidden = NO; return cell; } + (ChatNewRowCell *)configCell10:(UITableView *)tableView indexPath:(NSIndexPath *)indexPath{ static NSString *cellIdentifer = @"ChatNewRowCell10"; ChatNewRowCell *cell = [tableView dequeueReusableCellWithIdentifier:cellIdentifer]; if (cell == nil) { cell = [[[NSBundle mainBundle] loadNibNamed:@"ChatNewRowCell" owner:nil options:nil] objectAtIndex:3]; } cell.selectionStyle = UITableViewCellSelectionStyleNone; return cell; } + (ChatNewRowCell *)configCell20:(UITableView *)tableView indexPath:(NSIndexPath *)indexPath{ static NSString *cellIdentifer = @"ChatNewRowCell20"; ChatNewRowCell *cell = [tableView dequeueReusableCellWithIdentifier:cellIdentifer]; if (cell == nil) { cell = [[[NSBundle mainBundle] loadNibNamed:@"ChatNewRowCell" owner:nil options:nil] objectAtIndex:4]; } cell.selectionStyle = UITableViewCellSelectionStyleNone; cell.cell2TimeLabel.hidden = NO; return cell; } + (ChatNewRowCell *)configCell30:(UITableView *)tableView indexPath:(NSIndexPath *)indexPath{ static NSString *cellIdentifer = @"ChatNewRowCell30"; ChatNewRowCell *cell = [tableView dequeueReusableCellWithIdentifier:cellIdentifer]; if (cell == nil) { cell = [[[NSBundle mainBundle] loadNibNamed:@"ChatNewRowCell" owner:nil options:nil] objectAtIndex:5]; } cell.selectionStyle = UITableViewCellSelectionStyleNone; return cell; } + (ChatNewRowCell *)configCell40:(UITableView *)tableView indexPath:(NSIndexPath *)indexPath{ static NSString *cellIdentifer = @"ChatNewRowCell40"; ChatNewRowCell *cell = [tableView dequeueReusableCellWithIdentifier:cellIdentifer]; if (cell == nil) { cell = [[[NSBundle mainBundle] loadNibNamed:@"ChatNewRowCell" owner:nil options:nil] objectAtIndex:6]; } cell.selectionStyle = UITableViewCellSelectionStyleNone; return cell; } @end