Keyboard dismisses randomly on background, toolbar doesn't reset
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()
}
}

Are you using the latest version of the lib?
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
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.

This should be fixed in https://github.com/slackhq/SlackTextViewController/pull/421
#421 is now merged into master. Please give it a try.
Does that mean it's ready for cocoapods trunk update?
Not yet. You can install from a specific merge hash just to try it out and confirm the bug fix.
Got it thank you!
Bummer. I really wished it would fix my issue, but no luck. Same issue as above
@elmateo487 Make sure you're not using some sort of a keyboard manager like IQKeyboardManager. If you are disable it for your class instance.
Yeah, no keyboard management, or first responders or anything I can see of the sort.
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];
Wish that worked. Still no go.
Just released version 1.9.2. Please let me know if this is still an issue for you guys.
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
What version were you using before?
1.9.1
Carthage support got broken with 1.9.2 Just fixed it. Try again 😉
Hum, still same problem with 1.9.2
@elmateo487: ok, but Carthage is working again, right?