I was curious what code is generated in Xcode 4 when you ctrl + drag from a UI element to the header of the xib’s view controller.
For outlets, Xcode will create the @property in the header file and add a @synthesize to the implementation file. It will also add an entry to the viewDidUnload method to set the value of the outlet to nil. If your implementation file does not have a viewDidUnload method one will be created. Here is the code made for a label outlet: