UITableViewCell label not showing up
I’m struggling to display a UITableView with a label inside each cell.
At first, when launching the app, I get the error:
Objective-c TableViewCell label not showing up
I’m after a long time away from native iOS ( Swift 4) going back to it learning objective-c.
I’m finding objective-c quite simple to pick up but it has its quirks compared to Swift. I’m struggling displaying a TableView with its Cells with a label inside.
At first when launching the app I got the error Thread 1: "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"
so in the TableViewController.m viewDidLoad I added [self.tableView registerClass:[TableViewCell2 class] forCellReuseIdentifier:@"Cell"];
which fixed it.
Still I’m not seeing any label inside the cells. It all is correctly connected from the storyboard.
Can you spot what I’m doing wrong?
Thank you very much.
It’s kinda nice to feel like a noob again :).