现在我们必须在 ViewDidLoad 的某个地方使用这个代码 -
[self.tableView registerClass:[UITableViewCell class] forCellReuseIdentifier:CellIdentifier];
我不确定旧方法有什么问题,方法是检查单元格是否实际上是由旧方法中的队列返回的
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
让我感到困惑的是,为什么在不相关的地方使用一些任意的方法调用,而这个“注册”方法到底有什么作用?