Xcode 4 Interface Builder:如何设置文件的所有者 [英] Xcode 4 Interface Builder: How to set File's Owner

查看:101
本文介绍了Xcode 4 Interface Builder:如何设置文件的所有者的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我定义了myController.h和myController.m,然后继续使用向导创建myController.xib。但是,我无法将xib文件中的控件连接到类接口。通常当我在File's Owner图标上删除连接十字线时,它会显示一个已声明为IBOutlet的属性列表,但这次它什么都没有。



<我认为类文件的名称和XIB文件(myController)会自动绑定文件的所有者,但显然情况并非如此。



如何手动绑定两个?

解决方案

转到 Identity Inspector (Cmd + Option + 3)并将类更改为 myController


I have myController.h and myController.m defined, and proceeded to create a myController.xib with the Wizard. I can't, however, connect the controls from the xib file to the class interface. Usually when I drop the connection cross hair on the File's Owner icon, it'll show me a list of properties that have been declared as IBOutlet, but this time it's just nothing.

I thought the names of the class files and XIB file (myController) automatically binds File's Owner, but apparently that is not the case.

How can I manually bind the two?

解决方案

Go to the Identity Inspector (Cmd+Option+3) and change the class to myController.

这篇关于Xcode 4 Interface Builder:如何设置文件的所有者的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆