SCInputAccessoryView Class Reference
Inherits from | UIView |
Declared in | SCInputAccessoryView.h |
Overview
This special view provides an accessory view that automatically appears on top of the keyboard, providing navigation functionality between the different text controls. The view provides ‘Next’, ‘Previous’, and ‘Done’ buttons. It also provides a special ‘Clear’ button for cells such as SCDateCell.
Sample use: self.tableViewModel.inputAccessoryView.rewind = FALSE;
See also: SCTableViewModel
Tasks
Configuration
-
toolbar
property -
previousNextSegmentedControl
property -
doneButton
property -
showPrevNextButtons
property -
showClearButton
property -
clearButton
property -
rewind
property
Internal Properties & Methods (should only be used by the framework or when subclassing)
Properties
clearButton
The ‘Clear’ button control.
@property (nonatomic, readonly) UIBarButtonItem *clearButton
Declared In
SCInputAccessoryView.h
delegate
Used internally to set a delegate for the accessory view.
@property (nonatomic, weak) id<SCInputAccessoryViewDelegate> delegate
Declared In
SCInputAccessoryView.h
doneButton
The ‘Done’ button control.
@property (nonatomic, readonly) UIBarButtonItem *doneButton
Declared In
SCInputAccessoryView.h
previousNextSegmentedControl
The segmented control displaying the ‘Next’ and ‘Previous’ buttons.
@property (nonatomic, readonly) UISegmentedControl *previousNextSegmentedControl
Declared In
SCInputAccessoryView.h
rewind
Set to TRUE to rewind to the top or bottom text controls when the bottom or top is reached. Default: TRUE.
@property (nonatomic, readwrite) BOOL rewind
Declared In
SCInputAccessoryView.h
showClearButton
Set to TRUE to show the ‘Clear’ button for the cells that need it (e.g. SCDateCell). Default: TRUE.
@property (nonatomic, readwrite) BOOL showClearButton
Declared In
SCInputAccessoryView.h
Instance Methods
clearTapped
Method called internally when the ‘Clear’ button is tapped.
- (void)clearTapped
Declared In
SCInputAccessoryView.h
doneTapped
Method called internally when the ‘Done’ button is tapped.
- (void)doneTapped
Declared In
SCInputAccessoryView.h