How to connect cell prototype in storyboard?

I created a table view in a storyboard and a custom prototype cell. I set the cell id in the storyboard and try to remove it from the queue and get:

it is impossible to delete the cell with the TTEntry identifier - you need to register either a class or class for the identifier or connect the prototype cell in the storyboard

I do not see anything else in the properties of the TableCell storyboard to link them. I just don’t know what the message is going to.

Can someone point me in the right direction?

Thank!

Balamouth.

+4
source share
4 answers

From the storyboard:

  • In the set of attribute inspectors reuse identifier
  • CustomCell , Jignesh Agola.

(, ):

[self.tableView registerClass:<Your UITableViewCell subclass> forCellReuseIdentifier:<Your identifier>]
+11

CustomCell

enter image description here

+2

You must either 1) add your CustomCell class, as mentioned by Jignesh, or 2) register the program code in the software UITableViewController viewDidLoad:

let nib = UINib(nibName: "yourCellIdentifier", bundle: nil)
self.tableView.register(nib, forCellReuseIdentifier:"yourCellIdentifier")
+1
source

If you are using Search Display Controller

[self.searchDisplayController.searchResultsTableView registerClass:[YourClass class] forCellReuseIdentifier:@"yourCellIdentifier"];
0
source

All Articles