问题描述
在Xcode(最新版本)Interfacebuilder中,您可以将对象链接到代码。
In Xcode(latest version) Interfacebuilder, you can link objects to code.
我创建了一个类:@interface FileChangeController:NSObject
I have created one a class: @interface FileChangeController : NSObject
但是在Interfacebuilder Inspector中它没有在自定义类中列出?
But it is not listed in custom class, in Interfacebuilder Inspector?
你需要做一些特别的事吗?
Do you have to do something special?
提前致谢
问候
Christian
Thanks in advanceRegardsChristian
推荐答案
你必须从UI *类继承,以便在检查器中显示。例如:
You have to subclass from UI* classes for that to appear in the inspector. For example:
@interface FileChangeController : UIViewController
这应该使它在检查员中可见。
That should make it visible in the inspector.
此外,它仅对相关控件可见。那就是UIViewController类只对视图控制器(duh!)对象可见。
Also, it will be visible only for the relevant control. That is UIViewController classes will only be visible for view controller (duh!) objects.
这篇关于xcode interfacebuilder在Inspector中链接到自定义类的对象?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!