I have a UITableView with static cells in a Storyboard. The static cells are of a custom class. I would like to wire up the outlets for the cell but it seems like this is not supported?
Wiring the views onto the ViewController works, but is rather messy (there are lots of cells). A workaround would probably also be to tag the views, but also not ideal. Any other ideas?
Static cell is a crafting material that has a chance to drop when killing an Anglure [20%], Bobot [10%], Scandroid [10%], Voltip [20%] or Lumoth [10%]. It can also be harvested from Electric Fluffalo, which can be hatched from eggs purchasable at Terramart.
For performance reasons, a table view's data source should generally reuse UITableViewCell objects when it assigns cells to rows in its tableView(_:cellForRowAt:) method. A table view maintains a queue or list of UITableViewCell objects that the data source has marked for reuse.
You cannot control-drag your UIView to the source file. However, you can link up the other way around.
Custom Class
.@IBOutlet
as you need.Show the Connections Inspector
(the last tab).If you use "assistant editor", you will see the circle in front of @IBOutlet is now filled (hooked).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With