Hide UI Keyboard, back to basics

in ViewDidLoad set the UITextfield delegate to self, and assign to the firstresponder like this

- (void)viewDidLoad {
	[textfield setDelegate:self];
	[textfield becomeFirstResponder];
}
- (BOOL)textFieldShouldReturn:(UITextField *)textfield
{
	[textfield resignFirstResponder];
 
}

Comments are closed.