-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hide keyboard on touches outside textfield #14
Comments
May be I can add, but I think this is technically wrong to hide keyboard on touching outside of textField/textView. That's why I added UIToolbar functionality with 'Done' button to hide keyboard, I thinked this is the standard way to hide keyboard on Done click. |
@wisesabre it can be done using the following code: - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
[[self view] endEditing:YES];
} I'm wondering why iPhone is not like iPad having a hide-keyboard key by default? |
This method is available on UIResponder class. I do not having any control over this function through IQKeyboardManager class. |
Thanks Guys, I'll look into this. Regards, Saqib Saud On Sun, Dec 22, 2013 at 11:08 PM, elgs notifications@github.com wrote:
|
Thanks for suggesting me new things. I will look into this if i will be able to do this. |
Thanks for the new thought. I added a new boolean 'shouldResignOnTouchOutside'. Set it to yes to resign keyboard on touching outside of textField/textView. Best |
Thanks :) Regards, Saqib Saud On Mon, Dec 23, 2013 at 11:27 PM, Mohd Iftekhar Qurashi <
|
Can you add hide keyboard functionality when touches being outside textfield?
The text was updated successfully, but these errors were encountered: