no problems, I have:
Code:
- (void)textFieldDidEndEditing:(UITextField *)textField
{
NSLog(@"didendediting");
[self dismissModalViewControllerAnimated:YES];
}
- (BOOL)textFieldShouldReturn:(UITextField *)textField
{
NSLog(@"should return");
[textField resignFirstResponder];
return YES;
}
The delegate for the TextField is File's Owner of the ViewController, in which the code above lies.
The Keyboard Type is "NumberPad" in IB, as well as Return Key being "done" and Auto-enable Return Key is checked.
It's important to note that if I change the Keyboard Type to "Default" or even "Numbers & Punctuation", the above code is called when the "Done" button is tapped. There's obviously no "done" key in the Number Pad and the above code is never called.
Is that enough to go on?