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.

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

minimumValue

The minimum value allowed for the generated numeric text field control. Set to nil to ignore.

@property (nonatomic, copy) NSNumber *minimumValue

Declared In

SCPropertyAttributes.h

numberFormatter

The number formatter responsible for converting the numeric value to a string and vice versa.

@property (nonatomic, readonly) NSNumberFormatter *numberFormatter

Declared In

SCPropertyAttributes.h

Class Methods

attributesWithMinimumValue:maximumValue:allowFloatValue:

Allocates and returns an initialized ‘SCNumericTextFieldAttributes’.

+ (instancetype)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’.

+ (instancetype)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’.

- (instancetype)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’.

- (instancetype)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