Xcode 4 - Connecting Outlets

狂风中的少年 提交于 2019-12-04 16:46:31

问题


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


回答1:


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.




回答2:


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




回答3:


https://discussions.apple.com/thread/3054574?start=0&tstart=0

this worked for me




回答4:


In my case I was dragging the outlet from "Outlets/delegate", but it must come from "Referencing outlets".



来源:https://stackoverflow.com/questions/3346350/xcode-4-connecting-outlets

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!