One Quickie

Handling keyboard return button (UITextField->General)
Notifications about the UITextField keyboard return button come through this delegate method. This one hides the keyboard when the return button is typed.
- (BOOL) textFieldShouldReturn: (UITextField *) textField {
    // Dismiss the keyboard.
    [self.view endEditing:YES];
    return YES;

borkware home | products | miniblog | rants | quickies | cocoaheads
Advanced Mac OS X Programming book