SCNumericTextFieldAttributes

@interface SCNumericTextFieldAttributes : SCTextFieldAttributes {
  NSNumber *minimumValue;
  NSNumber *maximumValue;
  BOOL allowFloatValue;
  NSNumberFormatter *numberFormatter;
}

This class is used to extend the definition of an ‘SCPropertyAttributes’ instance of type SCPropertyTypeNumericTextField, thus allowing further customization of the generated control by the user.

Creation and Initialization

  • Allocates and returns an initialized ‘SCNumericTextFieldAttributes’. *

    • - parameter: minValue The minimum value allowed for the generated numeric text field control. Set to nil to ignore.
    • - parameter: maxValue The maximum value allowed for the generated numeric text field control. Set to nil to ignore.
    • - parameter: allowFloat Determines if the generated numeric text field control allows float values.

    Declaration

    Objective-C

    + (instancetype)attributesWithMinimumValue:(NSNumber *)minValue
                                  maximumValue:(NSNumber *)maxValue
                               allowFloatValue:(BOOL)allowFloat;
  • Allocates and returns an initialized ‘SCNumericTextFieldAttributes’. *

    • - parameter: minValue The minimum value allowed for the generated numeric text field control. Set to nil to ignore.
    • - parameter: maxValue The maximum value allowed for the generated numeric text field control. Set to nil to ignore.
    • - parameter: allowFloat Determines if the generated numeric text field control allows float values.
    • - parameter: _placeholder The placeholder of the generated numeric text field control. Set to nil to ignore.

    Declaration

    Objective-C

    + (instancetype)attributesWithMinimumValue:(NSNumber *)minValue
                                  maximumValue:(NSNumber *)maxValue
                               allowFloatValue:(BOOL)allowFloat
                                   placeholder:(NSString *)_placeholder;
  • Returns an initialized ‘SCNumericTextFieldAttributes’. *

    • - parameter: minValue The minimum value allowed for the generated numeric text field control. Set to nil to ignore.
    • - parameter: maxValue The maximum value allowed for the generated numeric text field control. Set to nil to ignore.
    • - parameter: allowFloat Determines if the generated numeric text field control allows float values.

    Declaration

    Objective-C

    - (instancetype)initWithMinimumValue:(NSNumber *)minValue
                            maximumValue:(NSNumber *)maxValue
                         allowFloatValue:(BOOL)allowFloat;
  • Returns an initialized ‘SCNumericTextFieldAttributes’. *

    • - parameter: minValue The minimum value allowed for the generated numeric text field control. Set to nil to ignore.
    • - parameter: maxValue The maximum value allowed for the generated numeric text field control. Set to nil to ignore.
    • - parameter: allowFloat Determines if the generated numeric text field control allows float values.
    • - parameter: _placeholder The placeholder of the generated numeric text field control. Set to nil to ignore.

    Declaration

    Objective-C

    - (instancetype)initWithMinimumValue:(NSNumber *)minValue
                            maximumValue:(NSNumber *)maxValue
                         allowFloatValue:(BOOL)allowFloat
                             placeholder:(NSString *)_placeholder;

Configuration