// // ZZTableViewCell.m // zzjk // // Created by 沙狐 on 2020/6/11. // Copyright © 2020 沙狐. All rights reserved. // #import "ZZTableViewCell.h" @implementation ZZTableViewCell +(instancetype)cellWithTableView:(UITableView *)tableView indexPath:(NSIndexPath *)indexPath { NSString *identifier = NSStringFromClass([self class]); ZZTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:identifier forIndexPath:indexPath]; if (cell == nil) { cell = [[self alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:identifier]; } return cell; } - (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