UITableView 使用重用cell方法edequeueReusableCellWithIdentifier,出现错误:
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'unable to dequeue a cell with identifier cell3 - must register a nib or a class for the identifier or connect a prototype cell in a storyboard'
解决:
[self.tableView registerClass:[MyTableViewCell class] forCellReuseIdentifier:customCellIdentifier];
或
[self.tableView registerNib:[UINib nibWithNibName:@"MyTableViewCell" bundle:nil] forCellReuseIdentifier:customCellIdentifier];