-(BOOL) textFieldShouldReturn:(UITextField*) theTextField{
[theTextField resignFirstResponder];
return YES;
}
it is not working....
-(BOOL) textFieldShouldReturn:(UITextField*) theTextField{
[theTextField resignFirstResponder];
return YES;
}
it is not working....
This answer demonstrates that the delegate decides whether or not to dismiss the keypad.
If you want to dismiss the keypad, textFieldShouldReturn: must return NO:
-(BOOL) textFieldShouldReturn:(UITextField*) theTextField{
[theTextField resignFirstResponder];
return NO;
}