
Hi everyone!!! Just worried about ..how to return the UIKeyboard on done or return button click in my iPhone application.
Thanks

Hi, Find the given code that will allow you to return the uikeyboard on done button click. Do not forget to call <UITextFieldDelegate> in you header file.
- (void)viewDidLoad {
[super viewDidLoad];
button1.returnKeyType = UIReturnKeyDone;
button2.returnKeyType = UIReturnKeyDone;
button1.delegate = self;
button2.delegate = self;
}
// dismiss the keyboard then the "done" button is clicked
- (BOOL)textFieldShouldReturn:(UITextField *)textField
{
[button1 resignFirstResponder];
[button2 resignFirstResponder];
return YES;
}
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.