Thread error in IBAction while overriding prepareForSegue function

后端 未结 7 1799
死守一世寂寞
死守一世寂寞 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 21:08

    Open the breakpoint editor in Xcode with ⌘ + 7. From there you can see the breakpoints that are on (as indicated by dark blue) or off (with light blue). I highly suspect that you have a breakpoint set in your method.

    The term Thread 1: Breakpoint 1.1 is the debugger's internal name for the breakpoint (I Assume you're reading this from the green bar of text?). It doesn't necessarily mean it is a threading error, it's just telling you where it stopped.

    You can press ^ + ⌘ + Y to Continue, or go to the Debug Menu and select other options. ⇧ + ⌘ + Y will bring up the Debug area and a bar of buttons which correlate to the Debug Menu's actions.

    HTH

    enter image description here

提交回复
热议问题