Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'unable to dequeue a cell with identifier Cell - must register a nib or a class for the identifier or connect a prototype cell in a storyboard'
To get rid of this you can do a couple things. First make sure your tableViewCell identifier has an identifier. In this case it would need to be "Cell".
Next, if you are using
dequeueReusableCellWithIdentifier:forIndexPath:
you need to register your class in viewDidLoad with:
[self.tableView registerClass: [FontCell class] forReuseIdentifier: @"Cell"];
If you don't want to do that, you can do it the old way, but you must check if your cell is nil:
dequeueReusableCellWithIdentifier:cellIdentifier
This is useless.
ReplyDeleteThis is useless.
ReplyDelete