You have the opportunity to customize the characteristics of the keyboard in the UITextFieldDelegate Protocol textFieldShouldBeginEditing: method , which is called before the text field becomes the first responder (indeed, to decide, it can become the first responder). If you do not yet have a delegate for the text field in question, you will have to assign it and implement at least this method. Presumably, the same object that processes the text field may contain delegate methods. The following implementation sets the return key to "Search".
- (BOOL) textFieldShouldBeginEditing:(UITextField *)textField { NSLog(@"textFieldShouldBeginEditing"); textField.returnKeyType = UIReturnKeySearch; return YES; }
You will need to look at the contents of the text fields to decide which value to use.
source share