Can't Call resignFirstResponder from textFieldDidBeginEditing ? (iPhone)

Posted by Chris on Stack Overflow See other posts from Stack Overflow or by Chris
Published on 2010-04-18T23:15:05Z Indexed on 2010/04/18 23:23 UTC
Read the original article Hit count: 591

[myTextField becomeFirstResponder];
[myTextField resignFirstResonder];

When I do this -(BOOL)textFieldShouldReturn:(UITextField *)textField , it works. But when I use the same code inside -(void)textFieldDidBeginEditing:(UITextField *)textField , it does not work.

I am certain that it is calling textFieldDidBeginEditing. I have an NSLog inside the method and it is being called.

© Stack Overflow or respective owner

Related posts about iphone

Related posts about firstresponder