Skip to content

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

Open

Description

@hectorstudio

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.

Activity

  1. danho322 commented on Mar 10, 2015

    @danho322

    Was this issue ever resolved?

  2. danho322 commented on Mar 10, 2015

    @danho322

    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];
    }
    
  3. nmtitov commented on Apr 30, 2015

    @nmtitov

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions