SFormRangedNumberField Class Reference

Inherits from SFormField : NSObject
Declared in SFormRangedNumberField.h
Availability
Related samples

Overview

A field for numeric entry within a set range.

This class represents a field model where a number can be chosen within a given maximum & minimum. This specializes the SFormNumberField to limit the setting of the value within a given bounds.

This class is compatible with validators that conform to SFormRangedNumberFieldValidator.

Properties

maximum

The maxium value this field can store.

@property (nonatomic, strong) NSNumber *maximum

Declared In

SFormRangedNumberField.h

minimum

The minimum value this field can store.

@property (nonatomic, strong) NSNumber *minimum

Declared In

SFormRangedNumberField.h

value

The current value of the field.

@property (nonatomic, copy) NSNumber *value

Declared In

SFormRangedNumberField.h

Instance Methods

initWithTitle:minimum:maximum:

Create a ranged number field with the given title and a given range.

- (instancetype)initWithTitle:(NSString *)title minimum:(NSNumber *)minimum maximum:(NSNumber *)maximum

Parameters

title

The field’s title.

minimum

The minimum of the field’s range.

maximum

The maximum of the field’s range.

Discussion

This is the designated initializer.

Declared In

SFormRangedNumberField.h