iOS segue executed twice

后端 未结 4 865
面向向阳花
面向向阳花 2021-02-06 00:18

I have a table view with different types of table view cells in it. In one of the cells, there are two buttons, which load a view controller when pressed. I am using the followi

4条回答
  •  渐次进展
    2021-02-06 01:01

    For Swift 3, xcode, and ios 9+, which is what I am using: Make sure you are drawing segue from your UIViewControllers and not buttons or other interfaces.

    I had the same problem, and simply changing the start of the segue from the UIController instead of the button removed this bug.

提交回复
热议问题