Skip to content
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

Keyboard freeze when I go back and forth to the View Controller that has DAKeyboardControl #70

Open
hectorstudio opened this issue Jun 4, 2014 · 3 comments

Comments

@hectorstudio
Copy link

Hi, I'm usiing this DAKeyboardControl in my app for chat.
It was good and I was pleased until I found several issue. Especially this issue is very annoying and can't find why.
When I go into Chat page with this control and tap the textview to enter message, and then swipe down, it works fine, and I get out of that page, and then right go back again.
When I do this several times, sometimes just once or twice, then the keyboard freeze when I tap the textview. And it take a while like 10 secs before they keyboard active again.

I've commented all the related code and just used this control and same thing happen.
Hope someone can help me fix this issue.

Many thanks.

@danho322
Copy link

Was this issue ever resolved?

@danho322
Copy link

Found what's happening, in hideKeyboard, the keyboard is being hidden and userInteractionEnabled is set to NO. If this keyboard is set as the active keyboard (in setKeyboardActiveView:), it will still be "frozen". I fixed it by adding this to the beginning of setKeyboardActiveView:

if (keyboardActiveView)
{
    [keyboardActiveView setUserInteractionEnabled:YES];
    [keyboardActiveView setHidden:NO];
}

@nmtitov
Copy link

nmtitov commented Apr 30, 2015

This helped me with the same problem, thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants