// // My_CenterCell.m // smartRhino // // Created by armin on 2019/11/1. // Copyright © 2019 tederen. All rights reserved. // #import "My_CenterCell.h" @implementation My_CenterCell - (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 116 + kStatusBarHeight; } + (CGFloat)configCell1Height{ return 47.5; } + (My_CenterCell *)configCell0:(UITableView *)tableView indexPath:(NSIndexPath *)indexPath{ static NSString *cellIdentifer = @"My_CenterCell0"; My_CenterCell *cell = [tableView dequeueReusableCellWithIdentifier:cellIdentifer]; if (cell == nil || !cell) { cell = [[[NSBundle mainBundle] loadNibNamed:@"My_CenterCell" owner:nil options:nil] objectAtIndex:0]; } cell.selectionStyle = UITableViewCellSelectionStyleNone; cell.cell0IntrtBgView.layer.masksToBounds = YES; cell.cell0IntrtBgView.layer.cornerRadius = 4.0; cell.cell0IntrtBgView.layer.borderWidth = 1.0; cell.cell0IntrtBgView.layer.borderColor = RGB(255.0, 255.0, 255.0).CGColor; cell.cell0UserImgView.layer.masksToBounds = YES; cell.cell0UserImgView.layer.cornerRadius = cell.cell0UserImgView.size.width/2; cell.cell0UserImgView.layer.borderWidth = 1.0; cell.cell0UserImgView.layer.borderColor = RGB(255.0, 255.0, 255.0).CGColor; cell.cell0TopH.constant = 32 + kStatusBarHeight; return cell; } + (My_CenterCell *)configCell1:(UITableView *)tableView indexPath:(NSIndexPath *)indexPath{ static NSString *cellIdentifer = @"My_CenterCell1"; My_CenterCell *cell = [tableView dequeueReusableCellWithIdentifier:cellIdentifer]; if (cell == nil || !cell) { cell = [[[NSBundle mainBundle] loadNibNamed:@"My_CenterCell" owner:nil options:nil] objectAtIndex:1]; } cell.selectionStyle = UITableViewCellSelectionStyleNone; return cell; } @end