EXC_BAD_INSTRUCTION error

后端 未结 2 1115
野性不改
野性不改 2021-01-27 09:41

I know that there are a lot of questions about this error, but I haven\'t found solution for my problem, even if I read most of them. In view controller I\'m trying to make my t

相关标签:
2条回答
  • 2021-01-27 09:44

    This code works for me. I tested it on my own. This is mostly an outlet error, if they aren't connected correctly. It could also be that you have removed an outlet from your code and still have it connected inside your storyboard.

    0 讨论(0)
  • 2021-01-27 10:07

    If your error is like this

    Then it is because you have not hooked up your outlets, to do this go into the storyboard / nib and hook it up like so:

    Make sure they are valid by seeing the circles become solid:

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