custom uitableviewcells in storyboard

后端 未结 1 657
小蘑菇
小蘑菇 2020-12-17 15:27

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:

相关标签:
1条回答
  • 2020-12-17 15:38

    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.

    0 讨论(0)
提交回复
热议问题