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.

Configuration