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
To do this, select the object that will be connecting to the action and open the Connections Inspector by clicking the arrow icon at the top of the Xcode Utility area. You can also show the inspector by choosing View, Utilities, Show Connections Inspector (or by pressing Option+Command+6).
In the example Swift code below, right click on btnRequestCode , from the popup menu select "Refactor > Rename...", change the outlet/action name and Xcode changes it in the Storyboard also.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With