Set the delegate on the text field that will bring up the keyboard. Add the following selector to the object that you set to be the delegate.
1 | - ( BOOL ) textFieldShouldReturn:(UITextField *) textField |
2 | { |
3 | [textField resignFirstResponder]; |
4 | return YES; |
5 | } |
0 Comments