I think I got all the steps down but I must be missing something because I can't make a connection from the labels in the cell to the code.
Here's what I'm doing:
What am I missing?
The same way that you create a UIViewController or UITableViewController : In your project, go to New File. Select Cocoa Touch Class under iOS. The subclass is UITableViewCell and the name is whatever name you're giving it. Within that class, you drag your buttons, labels, etc to create your outlets.
Declare the label as a property in the custom cell class. In the table view controller, alloc
or dequeue
the cell as your custom type, not as UITableViewCell
. In the Xcode storyboard, control drag from the cell itself (for example, the far bottom right corner) to the label that is in the cell to connect the outlet.
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