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.
-
Undocumented
Declaration
Objective-C
NSNumber *minimumValue
-
Undocumented
Declaration
Objective-C
NSNumber *maximumValue
-
Undocumented
Declaration
Objective-C
BOOL allowFloatValue
-
Undocumented
Declaration
Objective-C
NSNumberFormatter *numberFormatter
-
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;
-
The minimum value allowed for the generated numeric text field control. Set to nil to ignore.
Declaration
Objective-C
@property (nonatomic, copy) NSNumber *minimumValue;
-
The maximum value allowed for the generated numeric text field control. Set to nil to ignore.
Declaration
Objective-C
@property (nonatomic, copy) NSNumber *maximumValue;
-
Determines if the generated numeric text field control allows float values.
Declaration
Objective-C
@property (nonatomic) BOOL allowFloatValue;
-
The number formatter responsible for converting the numeric value to a string and vice versa.
Declaration
Objective-C
@property (nonatomic, readonly) NSNumberFormatter *numberFormatter;