failed to obtain a cell from its dataSource

原因:

UITableView没有找到重用的Cell,CellForIndex返回了nil。

Debug方法:

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath的方法最后返回的地方打个断点。

参考:

http://stackoverflow.com/questions/34250595/failed-to-obtain-a-cell-from-its-datasource

你可能感兴趣的:(failed to obtain a cell from its dataSource)