// // CommonListCell.m // smartRhino // // Created by niuzhen on 2020/4/28. // Copyright © 2020 tederen. All rights reserved. // #import "CommonListCell.h" @implementation CommonListCell - (void)awakeFromNib { [super awakeFromNib]; // Initialization code } + (CGFloat)configCell0Height{ return 72; } + (CommonListCell *)configCell0:(UITableView *)tableView indexPath:(NSIndexPath *)indexPath{ static NSString *cellIdentifer = @"CommonListCell0"; CommonListCell *cell = [tableView dequeueReusableCellWithIdentifier:cellIdentifer]; if (cell == nil) { cell = [[[NSBundle mainBundle] loadNibNamed:@"CommonListCell" owner:nil options:nil] objectAtIndex:0]; } cell.selectionStyle = UITableViewCellSelectionStyleNone; return cell; } + (CommonListCell *)configCell1:(UITableView *)tableView indexPath:(NSIndexPath *)indexPath{ static NSString *cellIdentifer = @"CommonListCell1"; CommonListCell *cell = [tableView dequeueReusableCellWithIdentifier:cellIdentifer]; if (cell == nil) { cell = [[[NSBundle mainBundle] loadNibNamed:@"CommonListCell" owner:nil options:nil] objectAtIndex:1]; } cell.selectionStyle = UITableViewCellSelectionStyleNone; return cell; } - (void)setCell1Data:(CommonListModel *)model { self.titleL.text = model.Title; self.nameL.text = model.Name; self.desL.text = model.Des; } - (void)setSelected:(BOOL)selected animated:(BOOL)animated { [super setSelected:selected animated:animated]; // Configure the view for the selected state } @end