SCNumericTextFieldCell Class Reference
Inherits from | SCTextFieldCell : SCControlCell : SCCustomCell : SCTableViewCell : UITableViewCell |
Declared in | SCTableViewCell.h |
Overview
This class functions as a cell with a UITextField control with numeric values. The bound property of this cell must be of type NSNumber, int, float, or double. SCNumericTextFieldCell defines its own validation rules according to the following criteria: - Value is valid only if it’s a numeric value. - If minimumValue is not nil, then value is only valid if it’s greater than or equal to this value. - If maximumValue is not nil, then value is only valid if it’s less than or equal to this value. - If allowFloatValue is FALSE, then value is only valid if it’s an integer value.
Tasks
Configuration
-
minimumValue
property -
maximumValue
property -
allowFloatValue
property -
displayZeroAsBlank
property -
numberFormatter
property
Properties
allowFloatValue
If FALSE, only integer cell values are valid. Default: TRUE.
@property (nonatomic, readwrite) BOOL allowFloatValue
Declared In
SCTableViewCell.h
displayZeroAsBlank
If TRUE, an empty space is displayed if the bound value equals zero. Default: FALSE.
@property (nonatomic, readwrite) BOOL displayZeroAsBlank
Declared In
SCTableViewCell.h
maximumValue
The maximum valid cell value.
@property (nonatomic, copy) NSNumber *maximumValue
Declared In
SCTableViewCell.h