添加这一句 [tableView registerClass:[UITableViewCell class] forCellReuseIdentifier:indentifier]; 加入到初始化tableview时
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:indentifier forIndexPath:indexPath];
添加这一句 [tableView registerClass:[UITableViewCell class] forCellReuseIdentifier:indentifier]; 加入到初始化tableview时
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:indentifier forIndexPath:indexPath];
转载于:https://www.cnblogs.com/yanggenwei/p/5002937.html