[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.