iOS segue executed twice

后端 未结 4 958
面向向阳花
面向向阳花 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条回答
  •  Happy的楠姐
    2021-02-06 00:45

    Answer by can poyrazoğlu:

    are you sure you've wired up the actions correctly in interface builder? maybe you've wired the event for, say, both touch up inside and touch down inside instead of just touch up inside. or maybe you've also assigned the segue from both code and again in interface builder. have you checked them? it's a common mistake. –

    I was assigning the touch up inside actions for each button both the storyboard and my tableview's datasource methods.

    Thank you for your quick help can poyrazoğlu!!

提交回复
热议问题