Thread error in IBAction while overriding prepareForSegue function

后端 未结 7 1823
死守一世寂寞
死守一世寂寞 2020-12-03 20:45

I\'m getting a thread error Thread 1: Breakpoint 1.1 in my IBAction function. The code runs without error, but when I click the button on the simul

7条回答
  •  臣服心动
    2020-12-03 20:51

    Here's the two steps to solve this:

    Remove break point, by going to DEBUG and DEACTIVATE ALL BREAK POINT

    Then, go to Main.Storyboard, right click on the area highlighted in red:

    Check that the yellow sign is present or not. If present then remove this. Code will run successfully. App will not crash.

提交回复
热议问题