IBOutlet的原因为零 [英] Reasons for an IBOutlet to be nil
本文介绍了IBOutlet的原因为零的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
IBOutlet
(连接)的原因是什么? nil
?
What are the reasons why an IBOutlet
(connected) could be nil
?
我有一个在应用程序中总是 nil
,即使我从头开始重现一切(声明和控制)。
I have one in may application which is always nil
, even if I recreate everything from scratch (declaration and control).
推荐答案
这可能是你的笔尖被打乱了,但我发现一个共同的原因是有两个实例,你认为你只有一个,您在代码中使用的代码不是您连接的代码。
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.
这篇关于IBOutlet的原因为零的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文