A validator to check that a text field has a valid numeric string value.
This allows for strings including:
Empty strings are also valid. Use the
SFormTextFieldNotEmptyValidator to mark these as invalid.
Whether values with a fractional part are valid (such as
@property (nonatomic, assign) BOOL allowDecimalValues
Whether to treat numeric strings as whole strings when validating, or to allow partial strings.
@property (nonatomic, assign) BOOL allowPartialStrings
1,000,0 could be entered as a partial string when trying to type
1,000,0 would be valid, as it is possible to add more digits to create a valid number.
1,000,0 would be invalid.
Normal validation will still be run, so
1,000,0000 would be invalid in both cases, as it is not possible to keep adding digits to create a valid number.
NO, to treat all numeric strings as fully-formed numbers.
Designated initializer for creating a validator for a given locale. Otherwise, defaults to using [NSLocale systemLocale].
- (instancetype)initWithLocale:(NSLocale *)locale
The locale controls the thousands separator that is considered to be valid by the returned validator.