自定义talbeviewcell

+ (instancetype)cellWithTableView:(UITableView *)tableView

{

    static NSString *ID = @"Cell";

    Cell *cell = [tableView dequeueReusableCellWithIdentifier:ID];

    if (cell == nil) {

        cell = [[Cell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:ID];

        

    }

    return cell;

}

原文地址:https://www.cnblogs.com/OneBlackLee/p/3946299.html