Hey guys,
I have a very simple application with a button and text field.
I want (of course) that when you click done after writing in the text field, the keyboard will go away. I added the following, as suggested in the Apple "First iPhone application" tutorial:
Although, it still doesn't seem to go away.
By the way, the text field is connected to the delegate, or the whatchamacallit.
Any help, please? Thanks.
I have a very simple application with a button and text field.
I want (of course) that when you click done after writing in the text field, the keyboard will go away. I added the following, as suggested in the Apple "First iPhone application" tutorial:
Code:
- (BOOL)textFieldShouldReturn:(UITextField *)theTextField {
if (theTextField == textField) {
[textField resignFirstResponder];
}
return YES;
}
Although, it still doesn't seem to go away.
By the way, the text field is connected to the delegate, or the whatchamacallit.
Any help, please? Thanks.