Detail Disclosure Button and Segues

后端 未结 1 414
南笙
南笙 2021-01-11 23:42

I\'m using a UITableViewController that performs an action sheet upon click, which works great. I\'d like to tie the Detail Disclosure to a segue. I created a segue from the

相关标签:
1条回答
  • 2021-01-12 00:24

    You probably have the "GroupToGroupMembers" segue hooked up to your UITableViewCell. When you do this, the segue is automatically performed when the cell is selected. This happening in addition to your regular event handling which is showing the action sheet.

    Hook your segue up to your UITableViewController instead. This allows you to define your segue so that it may be performed in response to the DetailDisclosure being tapped while, at the same time, preventing the segue from being automatically performed when a cell is selected.

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