Xcode 4 - 连接插座
此页面显示了我如何轻松连接插座 http://developer.apple.com/ Technologies/tools/whats-new.html 在 Xcode 4 中,但我无法获取它。
我右键单击并将一个出口从新的引用出口圆拖动到声明对象的标题中,但没有任何反应。
有人用过这个吗?
多谢
This page shows how easily I can connect outlets http://developer.apple.com/technologies/tools/whats-new.html in Xcode 4, but I can't get it.
I right click and drag an outlet from the new referencing outlet circle, and into my header where the object is declared, but nothing happens.
Has anyone used this?
Thanks a lot
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
我在 Xcode 4 的最终版本中遇到了同样的问题,并通过在使用拖放之前选择文件所有者自定义类来解决它。下降出口功能如下面的屏幕截图所示。
I had the same problem with the final version of Xcode 4 and solved it by selecting the File's Owner Custom Class before using the drag & drop outlet feature like shown on the screenshot below.
另外,仅供参考,对于商店来说,该商品必须位于窗口上,而不仅仅是背景上。它可以正常连接,但不会处理插座手势。奥特11
Also, fyi, for outlets the item has to be on a window, not just on the background. It will connect fine, but it will not process the outlet gesture. ort11
https://discussions.apple.com/thread/3054574?start=0& ;tstart=0
这对我有用
https://discussions.apple.com/thread/3054574?start=0&tstart=0
this worked for me
就我而言,我从“Outlets/delegate”中拖动插座,但它必须来自“Referencing Outlet”。
In my case I was dragging the outlet from "Outlets/delegate", but it must come from "Referencing outlets".