Inherits from | UIImageView |
Declared in | JSMessageInputView.h |
Overview
An instance of JSMessageInputView
defines the input toolbar for composing a new message that is to be displayed above the keyboard.
Tasks
-
style
Returns the style appearance for the input view.
property -
textView
Returns the textView into which a new message is composed. This property is never
propertynil
. -
sendButton
The send button for the input view. The default value is an initialized
propertyUIButton
whose appearance is styled according to the value of style during initialization. -
– initWithFrame:style:delegate:panGestureRecognizer:
Initializes and returns an input view having the given frame, style, delegate, and panGestureRecognizer.
-
– adjustTextViewHeightBy:
Adjusts the input view’s frame height by the given value.
-
+ textViewLineHeight
A constant indicating the height of one line of text in the input view.
-
+ maxLines
A contant indicating the maximum number of lines of text that can be displayed in the textView.
-
+ maxHeight
The maximum height of the input view as determined by
maxLines
andtextViewLineHeight
. This value is used for controlling the animation of the growing and shrinking of the input view as the text changes in the textView.
Properties
sendButton 
@property (weak, nonatomic) UIButton *sendButton
Discussion
The send button for the input view. The default value is an initialized UIButton
whose appearance is styled according to the value of style during initialization.
See Also
Declared In
JSMessageInputView.h
Class Methods
maxHeight 
The maximum height of the input view as determined by maxLines
and textViewLineHeight
. This value is used for controlling the animation of the growing and shrinking of the input view as the text changes in the textView.
+ (CGFloat)maxHeight
Return Value
The maximum height of the input view as determined by maxLines
and textViewLineHeight
. This value is used for controlling the animation of the growing and shrinking of the input view as the text changes in the textView.
Declared In
JSMessageInputView.h
Instance Methods
adjustTextViewHeightBy: 
- (void)adjustTextViewHeightBy:(CGFloat)changeInHeight
Discussion
Adjusts the input view’s frame height by the given value.
Parameters
- changeInHeight
The delta value by which to increase or decrease the existing height for the input view.
Declared In
JSMessageInputView.h
initWithFrame:style:delegate:panGestureRecognizer: 
- (instancetype)initWithFrame:(CGRect)frame style:(JSMessageInputViewStyle)style delegate:(id<UITextViewDelegate,JSDismissiveTextViewDelegate>)delegate panGestureRecognizer:(UIPanGestureRecognizer *)panGestureRecognizer
Discussion
Initializes and returns an input view having the given frame, style, delegate, and panGestureRecognizer.
Parameters
- frame
A rectangle specifying the initial location and size of the bubble view in its superview’s coordinates.
- style
The style of the input view. @see JSMessageInputViewStyle.
- delegate
An object that conforms to the
UITextViewDelegate
protocol andJSDismissiveTextViewDelegate
protocol.
- panGestureRecognizer
A
UIPanGestureRecognizer
used to dismiss the input view by dragging down.
Return Value
An initialized JSMessageInputView
object or nil
if the object could not be successfully initialized.
See Also
Declared In
JSMessageInputView.h