https://web.archive.org/web/20110604185120/http://developer.apple.com/library/ios/documentation/iphone/conceptual/iPhone101/Articles/05_ConfiguringView.html
To add an action for the button . . .
- In Xcode, select the view controller’s nib file (MyViewController.xib).
- Display the Assistant editor.
- Make sure Assistant displays the view controller’s header file (MyViewController.h).
- Control drag from the button in the nib file to the method declaration area in the header file.
How to do step 2?
How to display "the" Assistant Editor?
control + option + command + return : Show Assistant Editor.
Assistant Editor You are probably already familiar with Xcode's Assistant Editor. You can open the Assistant Editor by choosing Assistant from Xcode's Editor menu or by using its keyboard shortcut, Control + Option + Command + Return. Most developers leave the Assistant Editor underused, though.
You can open the editor from the Xcode menu Editor -> Assisant . Nowadays, the Assistant Editor is more seen as just a second editor next to the primary editor.
It's exclusive to Xcode 4:
In Xcode 6
It is the second button with two circles.
EDIT: As of the latest version of Xcode this has changed.
In XCode 6.2 it seems they've changed the icons again. I was having trouble finding it but I didn't realize where the buttons were until the dumb old me trying to pick up iOS thought I was missing a view, so here I am posting this for any passerby who needs some visual confirmation.
To be fair, I was looking for something based of some instructions I had read that referenced the two circles, and it didn't occur to me that two circles meant a split view / assistant editor, and not until after finding this post and figuring it out did I realize a suit was a reference to a butler AKA assistant :D
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