My app is running in UIWebView .. now when I click the return button in my keyboard when I'm editing a textfield in HTML page, I want the keyboard to disappear ... I went through some questions in Stack Overflow like I can not hide keyboard by pressing return key and How to hide Textbox Keyboard when "Done / Return" Button is pressed Xcode 4.2 but none of them is working for me.
Since , I can't set textfield.delegate = self
(as I'm only editing the text fields when they are loaded via UIWebView
) , I'm setting mywebview.delegate = self
and as expected , it ain't working. Please help !!!! Also I can't use textFieldShouldReturn()
method since the text field is inside an HTML ...