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
The toolbar holding the accessory’s different buttons and controls.
property -
previousNextSegmentedControl
The segmented control displaying the ‘Next’ and ‘Previous’ buttons.
property -
doneButton
The ‘Done’ button control.
property -
showPrevNextButtons
Set to TRUE to show the Prev and Next buttons. Default: TRUE.
property -
showClearButton
Set to TRUE to show the ‘Clear’ button for the cells that need it (e.g. SCDateCell). Default: TRUE.
property -
clearButton
The ‘Clear’ button control.
property -
rewind
Set to TRUE to rewind to the top or bottom text controls when the bottom or top is reached. Default: TRUE.
property
Internal Properties & Methods (should only be used by the framework or when subclassing)
-
delegate
Used internally to set a delegate for the accessory view.
property -
– previousTapped
Method called internally when the ‘Previous’ button is tapped.
-
– nextTapped
Method called internally when the ‘Next’ button is tapped.
-
– clearTapped
Method called internally when the ‘Clear’ button is tapped.
-
– doneTapped
Method called internally when the ‘Done’ button is tapped.
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, unsafe_unretained) id<> 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