make the textfield to be the first responder again
becomefirstresponder, ios, iphone, uitextfield
Solution
In your method call another method like bellow code
in `yourViewController.h` file just define bellow method
-(void)MykeyBoardUp;
and in .m file
-(void)MykeyBoardUp{
[yourtextFieldobject becomeFirstResponder];
}
after then in your .m file in bellow method just call this method like this
- (IBAction)textFieldDoneEditing:(id)sender {
[sender resignFirstResponder];
[self performSelector:@selector(MykeyBoardUp) withObject:nil afterDelay:0.2];
}
May this help you......
Problem
``` - (IBAction)textFieldDoneEditing:(id)sender { [sender resignFirstResponder]; [sender becomeFirstResponder]; } ``` I have a UItextField object, and link the "Did End On Exit" to the "textFieldDoneEditing" action. After I press the Done button on the keyboard, why is it dismissed?