このチュートリアルに従おうとしていますが、空のテーブルが表示されます。
まず、チュートリアルは使用しています
{
CarTableViewCell *cell = [tableView
dequeueReusableCellWithIdentifier:CellIdentifier
forIndexPath:indexPath];
}
これでエラーが発生しました:
2013-11-12 11:29:35.940 TableViewStory[14940:70b] *** Terminating app due to uncaught
exception 'NSInternalInconsistencyException', reason: 'unable to dequeue a cell with
identifier carTableCell - must register a nib or a class for the identifier or connect a
prototype cell in a storyboard'
だから私は追加しました:
[self.tableView registerClass:[CarTableViewCell class]
forCellReuseIdentifier:@"carTableCell"];
私のviewDidLoadで。registerClass を追加した後、アプリケーションをビルドすることができました。しかし、私は空のテーブルを取得しています。
ありがとうございました。