How to add a button with click event on UITableViewCell in Swift?

前端 未结 3 728
耶瑟儿~
耶瑟儿~ 2020-12-23 16:34

In my main page, I created a xib file for UITableViewCell. I\'m loading the cell from that xib file and its working fine.

Inside of the cell I have some labels and

3条回答
  •  Happy的楠姐
    2020-12-23 16:59

    2 am answer: You're over thinking this. Create a custom TableViewCell class; set the prototype cell class to your new custom class; and then create an IBAction.

提交回复
热议问题