SCInputAccessoryView
@interface SCInputAccessoryView : UIView
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
-
The toolbar holding the accessory’s different buttons and controls.
Declaration
Objective-C
@property (nonatomic, readonly) UIToolbar *toolbar;
-
The segmented control displaying the ‘Next’ and ‘Previous’ buttons.
Declaration
Objective-C
@property (nonatomic, readonly) UISegmentedControl *previousNextSegmentedControl;
-
The ‘Done’ button control.
Declaration
Objective-C
@property (nonatomic, readonly) UIBarButtonItem *doneButton;
-
Set to TRUE to show the Prev and Next buttons. Default: TRUE.
Declaration
Objective-C
@property (nonatomic) BOOL showPrevNextButtons;
-
Set to TRUE to show the ‘Clear’ button for the cells that need it (e.g. SCDateCell). Default: TRUE.
Declaration
Objective-C
@property (nonatomic) BOOL showClearButton;
-
The ‘Clear’ button control.
Declaration
Objective-C
@property (nonatomic, readonly) UIBarButtonItem *clearButton;
-
Set to TRUE to rewind to the top or bottom text controls when the bottom or top is reached. Default: TRUE.
Declaration
Objective-C
@property (nonatomic) BOOL rewind;
-
Used internally to set a delegate for the accessory view.
Declaration
Objective-C
@property (nonatomic, weak) id<SCInputAccessoryViewDelegate> delegate;
-
Method called internally when the ‘Previous’ button is tapped.
Declaration
Objective-C
- (void)previousTapped;
-
Method called internally when the ‘Next’ button is tapped.
Declaration
Objective-C
- (void)nextTapped;
-
Method called internally when the ‘Clear’ button is tapped.
Declaration
Objective-C
- (void)clearTapped;
-
Method called internally when the ‘Done’ button is tapped.
Declaration
Objective-C
- (void)doneTapped;