SlackTextViewController icon indicating copy to clipboard operation
SlackTextViewController copied to clipboard

Keyboard dismisses randomly on background, toolbar doesn't reset

Open mbalex99 opened this issue 10 years ago • 24 comments

I run into this problem pretty frequently. (Screenshot attached) It happens 25% of the time, where upon returning to the app, the keyboard is dismissed but the view textInputBar is not reset.

I am running an iPhone 6+ (It occurs on my iPhone 6 and iPhone 5) I am running iOS 9.2

As you can see I only have one view controller and it's extremely simple.

class ChatViewController: SLKTextViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
    }

}

image

mbalex99 avatar Mar 11 '16 20:03 mbalex99

Are you using the latest version of the lib?

dzenbot avatar Mar 16 '16 21:03 dzenbot

Yes.

On Wed, Mar 16, 2016 at 2:31 PM Ignacio Romero Zurbuchen < [email protected]> wrote:

Are you using the latest version of the lib?

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/slackhq/SlackTextViewController/issues/415#issuecomment-197557276

Maximilian Alexander [email protected] http://blog.edenmsg.com

mbalex99 avatar Mar 18 '16 10:03 mbalex99

I am seeing the same issue, but not when backgrounded, it seems completely random.

I am creating a class that is a SLKTextViewController, and inside of it I am not calling any set first responders, or anything like that, just the basic implementation.

I am then placing that controller into a CAPSPageMenu, which is a navigation controller with 3 pages. Sometimes when typing things into the chat section the text bar will just not dismiss. Other times it just won't dismiss randomly when switching pages. Either way I cannot reproduce, and have tried for a long time, it seems completely random.

Here is a gif, mind the poor quality.

issue2

elmateo487 avatar Mar 21 '16 09:03 elmateo487

This should be fixed in https://github.com/slackhq/SlackTextViewController/pull/421

dzenbot avatar Mar 21 '16 19:03 dzenbot

#421 is now merged into master. Please give it a try.

dzenbot avatar Mar 21 '16 20:03 dzenbot

Does that mean it's ready for cocoapods trunk update?

mbalex99 avatar Mar 21 '16 20:03 mbalex99

Not yet. You can install from a specific merge hash just to try it out and confirm the bug fix.

dzenbot avatar Mar 21 '16 20:03 dzenbot

Got it thank you!

mbalex99 avatar Mar 21 '16 20:03 mbalex99

Bummer. I really wished it would fix my issue, but no luck. Same issue as above

elmateo487 avatar Mar 22 '16 07:03 elmateo487

@elmateo487 Make sure you're not using some sort of a keyboard manager like IQKeyboardManager. If you are disable it for your class instance.

mbalex99 avatar Mar 22 '16 21:03 mbalex99

Yeah, no keyboard management, or first responders or anything I can see of the sort.

elmateo487 avatar Mar 23 '16 06:03 elmateo487

The only way I was able to get around this entirely was by throwing this into "viewWillDisappear"

Swift:

self.view.endediting(true)

ObjC:

[self.view endEditing:YES];

rrallo avatar Apr 13 '16 00:04 rrallo

Wish that worked. Still no go.

elmateo487 avatar Apr 13 '16 05:04 elmateo487

Just released version 1.9.2. Please let me know if this is still an issue for you guys.

dzenbot avatar Apr 13 '16 06:04 dzenbot

Call me dumb... but I can't build after doing a carthage update. SLKTextInput.h file not found, and could not build ObjC module SlackTextViewController

elmateo487 avatar Apr 13 '16 07:04 elmateo487

What version were you using before?

dzenbot avatar Apr 13 '16 07:04 dzenbot

1.9.1

elmateo487 avatar Apr 13 '16 07:04 elmateo487

Carthage support got broken with 1.9.2 Just fixed it. Try again 😉

dzenbot avatar Apr 13 '16 07:04 dzenbot

Hum, still same problem with 1.9.2

elmateo487 avatar Apr 13 '16 07:04 elmateo487

@elmateo487: ok, but Carthage is working again, right?

dzenbot avatar Apr 13 '16 16:04 dzenbot