I am loading an HTML page that has a form. I would like to be able to dismiss the keyboard when the user clicks on GO or if he clicks on the SUBMIT button on the HTML page.
I'm not so familiar with UIWebView, but normally you would dismiss your keyboard like so...
[textField resignFirstResponder];
By doing that, the keyboard would be dismissed...
To have the keyboard be dismissed when say the user clicks the return button, you would need to implement the delegate method.
- (BOOL)textFieldShouldReturn:(UITextField *)textField
{
[textField resignFirstResponder];
return YES;
}
Apple's documentation has a full list of methods for the UITextFieldDelegate.