SCNumericTextFieldCell
@interface SCNumericTextFieldCell : SCTextFieldCell {
NSNumber *minimumValue;
NSNumber *maximumValue;
BOOL allowFloatValue;
BOOL displayZeroAsBlank;
NSNumberFormatter *numberFormatter;
}
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.
-
Undocumented
Declaration
Objective-C
NSNumber *minimumValue
-
Undocumented
Declaration
Objective-C
NSNumber *maximumValue
-
Undocumented
Declaration
Objective-C
BOOL allowFloatValue
-
Undocumented
Declaration
Objective-C
BOOL displayZeroAsBlank
-
Undocumented
Declaration
Objective-C
NSNumberFormatter *numberFormatter
-
The minimum valid cell value.
Declaration
Objective-C
@property (nonatomic, copy) NSNumber *minimumValue;
-
The maximum valid cell value.
Declaration
Objective-C
@property (nonatomic, copy) NSNumber *maximumValue;
-
If FALSE, only integer cell values are valid. Default: TRUE.
Declaration
Objective-C
@property (nonatomic) BOOL allowFloatValue;
-
If TRUE, an empty space is displayed if the bound value equals zero. Default: FALSE.
Declaration
Objective-C
@property (nonatomic) BOOL displayZeroAsBlank;
-
The number formatter responsible for converting the cell’s numeric value to a string and vice versa.
Declaration
Objective-C
@property (nonatomic, readonly) NSNumberFormatter *numberFormatter;