Skip to content
This repository has been archived by the owner on Aug 14, 2019. It is now read-only.

[Crash] Provide custom toolbar view. #1081

Closed
ypopovych opened this issue Jul 9, 2015 · 1 comment
Closed

[Crash] Provide custom toolbar view. #1081

ypopovych opened this issue Jul 9, 2015 · 1 comment
Labels
Milestone

Comments

@ypopovych
Copy link

I need another type of toolbar (for speech recognition, so no textView in it).

I subclassed JSQMessagesToolbarContentView and JSQMessagesInputToolbar. In JSQMessagesInputToolbar I implemented loadToolbarContentView and returns my initialized toolbar. But JSQMessagesViewController try to create JSQMessagesKeyboardController for it, and crashes on textView != nil assertion. How I can disable creating of keyboard controller?

@jessesquires jessesquires added this to the 7.1.2 milestone Aug 13, 2015
@jessesquires jessesquires changed the title Provide custom toolbar view. [Crash] Provide custom toolbar view. Aug 13, 2015
@eliburke
Copy link
Collaborator

@ypopovych can you please provide some more detail about how you replaced the stock input toolbar with your custom subclass? I can't figure out how to connect subclasses of those with JSQMessagesViewController, as the inputToolbar property, and its contentView are both read only. I've tried fiddling around with overriding the property and only achieved KVO-related crashes for my pains.

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

No branches or pull requests

3 participants