LuxChat  2.0
Instant messenger for iOS
Instance Methods | Properties | List of all members
JSQMessagesInputToolbar Class Reference

#import <JSQMessagesInputToolbar.h>

Inheritance diagram for JSQMessagesInputToolbar:

Instance Methods

(void) - toggleSendButtonEnabled
 
(JSQMessagesToolbarContentView *) - loadToolbarContentView
 

Properties

id< JSQMessagesInputToolbarDelegatedelegate
 
JSQMessagesToolbarContentViewcontentView
 
BOOL sendButtonOnRight
 
CGFloat preferredDefaultHeight
 
NSUInteger maximumHeight
 

Detailed Description

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.

Method Documentation

- (JSQMessagesToolbarContentView *) loadToolbarContentView

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.

Property Documentation

- (JSQMessagesToolbarContentView*) contentView
readnonatomicweak

Returns the content view of the toolbar. This view contains all subviews of the toolbar.

- (id<JSQMessagesInputToolbarDelegate>) delegate
readwritenonatomicweak

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: