SCNumericTextFieldAttributes Class Reference
Inherits from | SCTextFieldAttributes : SCPropertyAttributes : NSObject |
Declared in | SCPropertyAttributes.h |
Overview
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.
Tasks
Creation and Initialization
-
+ attributesWithMinimumValue:maximumValue:allowFloatValue:
Allocates and returns an initialized ‘SCNumericTextFieldAttributes’.
-
+ attributesWithMinimumValue:maximumValue:allowFloatValue:placeholder:
Allocates and returns an initialized ‘SCNumericTextFieldAttributes’.
-
– initWithMinimumValue:maximumValue:allowFloatValue:
Returns an initialized ‘SCNumericTextFieldAttributes’.
-
– initWithMinimumValue:maximumValue:allowFloatValue:placeholder:
Returns an initialized ‘SCNumericTextFieldAttributes’.
Configuration
-
minimumValue
The minimum value allowed for the generated numeric text field control. Set to nil to ignore.
property -
maximumValue
The maximum value allowed for the generated numeric text field control. Set to nil to ignore.
property -
allowFloatValue
Determines if the generated numeric text field control allows float values.
property -
numberFormatter
The number formatter responsible for converting the numeric value to a string and vice versa.
property
Properties
allowFloatValue
Determines if the generated numeric text field control allows float values.
@property (nonatomic, readwrite) BOOL allowFloatValue
Declared In
SCPropertyAttributes.h
maximumValue
The maximum value allowed for the generated numeric text field control. Set to nil to ignore.
@property (nonatomic, copy) NSNumber *maximumValue
Declared In
SCPropertyAttributes.h
Class Methods
attributesWithMinimumValue:maximumValue:allowFloatValue:
Allocates and returns an initialized ‘SCNumericTextFieldAttributes’.
+ (id)attributesWithMinimumValue:(NSNumber *)minValue maximumValue:(NSNumber *)maxValue allowFloatValue:(BOOL)allowFloat
Parameters
- minValue
The minimum value allowed for the generated numeric text field control. Set to nil to ignore.
- maxValue
The maximum value allowed for the generated numeric text field control. Set to nil to ignore.
- allowFloat
Determines if the generated numeric text field control allows float values.
Declared In
SCPropertyAttributes.h
attributesWithMinimumValue:maximumValue:allowFloatValue:placeholder:
Allocates and returns an initialized ‘SCNumericTextFieldAttributes’.
+ (id)attributesWithMinimumValue:(NSNumber *)minValue maximumValue:(NSNumber *)maxValue allowFloatValue:(BOOL)allowFloat placeholder:(NSString *)_placeholder
Parameters
- minValue
The minimum value allowed for the generated numeric text field control. Set to nil to ignore.
- maxValue
The maximum value allowed for the generated numeric text field control. Set to nil to ignore.
- allowFloat
Determines if the generated numeric text field control allows float values.
- _placeholder
The placeholder of the generated numeric text field control. Set to nil to ignore.
Declared In
SCPropertyAttributes.h
Instance Methods
initWithMinimumValue:maximumValue:allowFloatValue:
Returns an initialized ‘SCNumericTextFieldAttributes’.
- (id)initWithMinimumValue:(NSNumber *)minValue maximumValue:(NSNumber *)maxValue allowFloatValue:(BOOL)allowFloat
Parameters
- minValue
The minimum value allowed for the generated numeric text field control. Set to nil to ignore.
- maxValue
The maximum value allowed for the generated numeric text field control. Set to nil to ignore.
- allowFloat
Determines if the generated numeric text field control allows float values.
Declared In
SCPropertyAttributes.h
initWithMinimumValue:maximumValue:allowFloatValue:placeholder:
Returns an initialized ‘SCNumericTextFieldAttributes’.
- (id)initWithMinimumValue:(NSNumber *)minValue maximumValue:(NSNumber *)maxValue allowFloatValue:(BOOL)allowFloat placeholder:(NSString *)_placeholder
Parameters
- minValue
The minimum value allowed for the generated numeric text field control. Set to nil to ignore.
- maxValue
The maximum value allowed for the generated numeric text field control. Set to nil to ignore.
- allowFloat
Determines if the generated numeric text field control allows float values.
- _placeholder
The placeholder of the generated numeric text field control. Set to nil to ignore.
Declared In
SCPropertyAttributes.h