iPhone keyboard, Done button and resignFirstResponder
Posted
by nevan
on Stack Overflow
See other posts from Stack Overflow
or by nevan
Published on 2010-05-13T17:18:28Z
Indexed on
2010/05/13
17:24 UTC
Read the original article
Hit count: 231
This is probably a dumb question, but I can't find the answer in the docs. Did the "Done" button on the pop-up keyboard always cause the keyboard to disappear? I see a lot of code around the web like this:
- (BOOL)textFieldShouldReturn:(UITextField *)theTextField {
[theTextField resignFirstResponder];
return YES;
}
When I press the "Done" button, the keyboard pops down and the UITextField
resigns first responder.
I'm presuming that pressing the "Done" button didn't used to cause a UITextField
to resignFirstResponder
, but that behavior changed at some time.
I'm debugging on OS 3.0 - 3.1.3
© Stack Overflow or respective owner