iOSWonderer
iOSWonderer

Reputation: 3

Custom UITableView Cell Error

I've been following a guide to create my own UITableView cell and I created the class and the interface successfully.

When I tried to change my app code from the default UITableViewCell to my custom-made SimpleTableCell I got the following error: My code and the error

Why I get this error while the commented area in the above code works great?

The error appears in the following line:

SimpleTableCell *cell = [tableView dequeueReusableCellWithIdentifier:simpleTableIdentifier];

Upvotes: 0

Views: 26

Answers (1)

Andriy Gordiychuk
Andriy Gordiychuk

Reputation: 6272

Make sure that at the top of your file you have

#import "SimpleTableCell.h"

or whichever other header in which this class is declared.

Upvotes: 1

Related Questions