#import <JSQMessagesInputToolbar.h>
An instance of JSQMessagesInputToolbar defines the input toolbar for composing a new message. It is displayed above and follow the movement of the system keyboard.
Loads the content view for the toolbar.
Override this method to provide a custom content view for the toolbar.
- Returns
- An initialized
JSQMessagesToolbarContentView if successful, otherwise nil.
| - (void) toggleSendButtonEnabled |
|
|
|
Enables or disables the send button based on whether or not its textView has text. That is, the send button will be enabled if there is text in the textView, and disabled otherwise.
Returns the content view of the toolbar. This view contains all subviews of the toolbar.
The object that acts as the delegate of the toolbar.
| - (NSUInteger) maximumHeight |
|
readwritenonatomicassign |
Specifies the maximum height for the toolbar. The default value is NSNotFound, which specifies no maximum height.
| - (CGFloat) preferredDefaultHeight |
|
readwritenonatomicassign |
Specifies the default (minimum) height for the toolbar. The default value is 44.0f. This value must be positive.
| - (BOOL) sendButtonOnRight |
|
readwritenonatomicassign |
A boolean value indicating whether the send button is on the right side of the toolbar or not.
The default value is YES, which indicates that the send button is the right-most subview of the toolbar's contentView. Set to NO to specify that the send button is on the left. This property is used to determine which touch events correspond to which actions.
- Warning
- Note, this property does not change the positions of buttons in the toolbar's content view. It only specifies whether the
rightBarButtonItemor the leftBarButtonItem is the send button. The other button then acts as the accessory button.
The documentation for this class was generated from the following files:
- Vendors/JSQMessagesViewController/Views/JSQMessagesInputToolbar.h
- Vendors/JSQMessagesViewController/Views/JSQMessagesInputToolbar.m