🙁
Just got the 'Beginning iPhone Development' from Apress. I believed I was starting to wrap my head around the basics, but for some reason I can't get the following code to work:
The first action works fine and closes the Keyboard as it should. The second action is hooked up to a button but won't perform the Keyboard-close. I know the action is called as the debugger returns the "Here I am" statment...
Anyone?
Just got the 'Beginning iPhone Development' from Apress. I believed I was starting to wrap my head around the basics, but for some reason I can't get the following code to work:
Code:
-(IBAction) textFieldDoneEditing:(id)sender
{
[nameField resignFirstResponder];
}
-(IBAction) backgroundClick:(id)sender
{
[nameField resignFirstResponder];
NSLog(@"Here I am");
}
Anyone?