Hey guys, I have googled this for hours and nothing seems to work, I have a UIView and in that I have 3 text fields and I just cant get the keyboard to dismiss when the return button is pressed. I have tried the whole:
- (BOOL)textFieldShouldReturnUITextField *)textField {
NSLog(@"textFieldShouldReturn");
[textField resignFirstResponder];
return YES;
}
I am putting it in the implementation file that I created with IB. I have connected the text fields delegates to the File Owner. Someone please help, am I putting that in the wrong spot? Do I need to call that somewhere? Should the "textField" variables be the name of my created text fields?
- (BOOL)textFieldShouldReturnUITextField *)textField {
NSLog(@"textFieldShouldReturn");
[textField resignFirstResponder];
return YES;
}
I am putting it in the implementation file that I created with IB. I have connected the text fields delegates to the File Owner. Someone please help, am I putting that in the wrong spot? Do I need to call that somewhere? Should the "textField" variables be the name of my created text fields?