Xcode

 
 
Xcode is a suite of tools, developed by Apple, for developing software for Mac OS X and iOS.

More information can be found at: https://developer.apple.com/







Dismiss keyboard when editing UITextField



Information
A keyboard pops up when a user enters text in a Text Field.
When finished, the user presses the return button.
The keyboard must be dismissed.

Dismiss keyboard when return button is dismissed

Operating system used
Mac OS 10.7 (Lion)

Software prerequisites
Xcode 4.1


Procedure
  1. In the ViewController class implement method:

    - (IBAction) textFieldFinishedWithKeyBoard:(id)sender {
        return [sender resignFirstResponder];
    }

  2. In InterfaceBuilder add a "Text Field" object.

  3. Right click File's Owner and connect action textFieldFinishedWithKeyBoard: with the "Text Field" object and event "Did End On exit".