Inherits from UIToolbar
Declared in SLKTextInputbar.h

Tasks

Other Methods

  •   controller

    A weak reference to the core view controller.

    property
  •   textView

    The centered text input view. The maximum number of lines is configured by default, to best fit each devices dimensions. For iPhone 4 (<=480pts): 4 lines For iPhone 5 & 6 (>=568pts): 6 lines For iPad (>=768pts): 8 lines

    property
  •   inputAccessoryView

    The custom input accessory view, used as empty achor view to detect the keyboard frame.

    property
  •   leftButton

    The left action button action.

    property
  •   rightButton

    The right action button action.

    property
  •   autoHideRightButton

    YES if the right button should be hidden animatedly in case the text view has no text in it. Default is YES.

    property
  •   contentInset

    The inner padding to use when laying out content in the view. Default is {5, 8, 5, 8}.

    property
  •   minimumInputbarHeight

    The minimum height based on the intrinsic content size’s.

    property
  •   appropriateHeight

    The most appropriate height calculated based on the amount of lines of text and other factors.

    property

Initialization

Text Editing

Text Counting

Properties

appropriateHeight

@property (nonatomic, readonly) CGFloat appropriateHeight
Discussion

The most appropriate height calculated based on the amount of lines of text and other factors.

Declared In

SLKTextInputbar.h

autoHideRightButton

@property (nonatomic, readwrite) BOOL autoHideRightButton
Discussion

YES if the right button should be hidden animatedly in case the text view has no text in it. Default is YES.

Declared In

SLKTextInputbar.h

charCountLabel

@property (nonatomic, readonly) UILabel *charCountLabel
Discussion

The label used to display the character counts.

Declared In

SLKTextInputbar.h

charCountLabelNormalColor

@property (nonatomic, strong, readwrite) UIColor *charCountLabelNormalColor
Discussion

The normal color used for character counter label. Default is lightGrayColor.

Declared In

SLKTextInputbar.h

charCountLabelWarningColor

@property (nonatomic, strong, readwrite) UIColor *charCountLabelWarningColor
Discussion

The color used for character counter label when it has exceeded the limit. Default is redColor.

Declared In

SLKTextInputbar.h

contentInset

@property (nonatomic, assign) UIEdgeInsets contentInset
Discussion

The inner padding to use when laying out content in the view. Default is {5, 8, 5, 8}.

Declared In

SLKTextInputbar.h

controller

@property (nonatomic, weak) SLKTextViewController *controller
Discussion

A weak reference to the core view controller.

Declared In

SLKTextInputbar.h

counterPosition

@property (nonatomic, assign) SLKCounterPosition counterPosition
Discussion

The character counter layout style. Ignored if maxCharCount is 0. Default is SLKCounterPositionTop.

Declared In

SLKTextInputbar.h

counterStyle

@property (nonatomic, assign) SLKCounterStyle counterStyle
Discussion

The character counter formatting. Ignored if maxCharCount is 0. Default is None.

Declared In

SLKTextInputbar.h

editing

@property (nonatomic, getter=isEditing) BOOL editing
Discussion

A Boolean value indicating whether the control is in edit mode.

Declared In

SLKTextInputbar.h

editorContentView

@property (nonatomic, strong) UIView *editorContentView
Discussion

The view displayed on top if the text input bar, containing the button outlets, when editing is enabled.

Declared In

SLKTextInputbar.h

editorContentViewHeight

@property (nonatomic, assign) CGFloat editorContentViewHeight
Discussion

The accessory view’s maximum height. Default is 38 pts.

Declared In

SLKTextInputbar.h

editorLeftButton

@property (nonatomic, strong) UIButton *editorLeftButton
Discussion

The ‘cancel’ button displayed left in the accessoryView.

Declared In

SLKTextInputbar.h

editorRightButton

@property (nonatomic, strong) UIButton *editorRightButton
Discussion

The ‘accept’ button displayed right in the accessoryView.

Declared In

SLKTextInputbar.h

editorTitle

@property (nonatomic, strong) UILabel *editorTitle
Discussion

The title label displayed in the middle of the accessoryView.

Declared In

SLKTextInputbar.h

inputAccessoryView

@property (nonatomic, strong) SLKInputAccessoryView *inputAccessoryView
Discussion

The custom input accessory view, used as empty achor view to detect the keyboard frame.

Declared In

SLKTextInputbar.h

leftButton

@property (nonatomic, strong) UIButton *leftButton
Discussion

The left action button action.

Declared In

SLKTextInputbar.h

limitExceeded

@property (nonatomic, readonly) BOOL limitExceeded
Discussion

YES if the maxmimum character count has been exceeded.

Declared In

SLKTextInputbar.h

maxCharCount

@property (nonatomic, readwrite) NSUInteger maxCharCount
Discussion

The maximum character count allowed. If larger than 0, a character count label will be displayed on top of the right button. Default is 0, which means limitless.

Declared In

SLKTextInputbar.h

minimumInputbarHeight

@property (nonatomic, readonly) CGFloat minimumInputbarHeight
Discussion

The minimum height based on the intrinsic content size’s.

Declared In

SLKTextInputbar.h

rightButton

@property (nonatomic, strong) UIButton *rightButton
Discussion

The right action button action.

Declared In

SLKTextInputbar.h

textView

@property (nonatomic, strong) SLKTextView *textView
Discussion

The centered text input view. The maximum number of lines is configured by default, to best fit each devices dimensions. For iPhone 4 (<=480pts): 4 lines For iPhone 5 & 6 (>=568pts): 6 lines For iPad (>=768pts): 8 lines

Declared In

SLKTextInputbar.h

Instance Methods

beginTextEditing

- (void)beginTextEditing
Discussion

Begins editing the text, by updating the ‘editing’ flag and the view constraints.

Declared In

SLKTextInputbar.h

canEditText:

- (BOOL)canEditText:(NSString *)text
Discussion

Verifies if the text can be edited.

Parameters

text

The text to be edited.

Return Value

YES if the text is editable.

Declared In

SLKTextInputbar.h

endTextEdition

- (void)endTextEdition
Discussion

End editing the text, by updating the ‘editing’ flag and the view constraints.

Declared In

SLKTextInputbar.h

initWithTextViewClass:

- (instancetype)initWithTextViewClass:(Class)textViewClass
Discussion

Initializes a text input bar with a class to be used for the text view

Parameters

textViewClass

The class to be used when creating the text view. May be nil. If provided, the class must be a subclass of SLKTextView

Return Value

An initialized SLKTextInputbar object or nil if the object could not be created.

Declared In

SLKTextInputbar.h