-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
How to customize the JSQMessagesToolbarContentView #1068
Comments
hi, I had same problem and resolved it in next way:
That code hides left attach button and adds 2 custom buttons like subviews and changes width for left content view. Hope it will help you. |
thanks for the answer @YroJlbok ! 😄 |
@TheEngineerz Thanks for beautiful solution. |
Swift 3 version for above code ;
|
when we add third button it hides behind inputtoolbar , so how we can solve this issue... |
hi @iOSvarinder , you should increase leftBarButtonItemWidth, calculate your left offset (width of 3 buttons with spacing) and assign new value. |
I want to customize the JSQMessagesToolbarContentView . i have made a new class name ZLMessagesToolbarContentView and extend it to JSQMessagesToolbarContentView. but i am not able to add my custom subview becasue the left and right container view are read only .
Please suggest me the correct way to subclass it and customize it thanks
The text was updated successfully, but these errors were encountered: