I need to hide the keyboard as soon as a page starts loading. I've tried all commonly suggested approaches discussed e.g. here
Following approaches have no effect on the keyboard
[webView endEditing:YES];
[webView stringByEvaluatingJavaScriptFromString:@"document.activeElement.blur();"];
[webView stringByEvaluatingJavaScriptFromString:@"window.blur();"];
I invoke them in -webView:shouldStartLoadWithRequest:navigationType:
What am I doing wrong? Any suggestions?