[英]No Outlets or Actions showing up in file's owner
In my Xcode project, I have a .xib file, but none of my actions or outlets are showing up in the file's owner. 在我的Xcode项目中,我有一个.xib文件,但我的操作或出口都没有显示在文件的所有者中。
They were all showing up normally just a second ago, but now they're gone. 它们都是在一秒钟之前正常出现,但现在它们已经消失了。 I didn't change or add any code at all.
我没有改变或添加任何代码。 This all happened after I closed (not force quit) Xcode then re-opened it.
这一切都发生在我关闭(而不是强制退出)Xcode然后重新打开它之后。
Any ideas? 有任何想法吗? Again, it was working fine just a second ago, and my File's owner is still a NSObject (as default)
再一次,它在一秒钟前工作正常,我的文件所有者仍然是NSObject(默认情况下)
Can you please elaborate as to what you mean by "it was working already" ? 你能详细说明一下“它已经在工作”了吗? Is the file owner of your .xib a custom class of yours?
.xib的文件所有者是您的自定义类吗?
If that's the case, did you set the Custom Class properly for your .xib (Utilities -> Identity Inspector -> Custom Class -> <MyCustomClassName>
) like this 如果是这种情况,您是否正确为.xib(实用程序 - >身份检查器 - >自定义类 - >
<MyCustomClassName>
)设置了自定义类,如下所示
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.