Reasons for an IBOutlet to be nil

前端 未结 6 1811
滥情空心
滥情空心 2021-01-12 13:44

What are the reasons why an IBOutlet (connected) could be nil?

I have one in may application which is always nil, even if I re

6条回答
  •  一整个雨季
    2021-01-12 14:14

    It could be that your nib is messed up, but I find a common reason is having two instances where you think you only have one, and the one you're using in your code is not the one you connected.

提交回复
热议问题