RBSliderField Class Reference
Inherits from | UIControl |
---|---|
Declared in | RBSliderField.h |
Overview
A slider field that can be used as a normal slider and a range slider.
All components are internally RBImageView
’s therefore you may
theme them. See theming documentation.
delegate
A delegate to receive slider value changes and extend string formatting.
@property (nonatomic, weak, nullable) id<RBSliderFieldDelegate> delegate
Discussion
A delegate to receive slider value changes and extend string formatting.
Declared In
RBSliderField.h
margin
The margin around the controls.
@property (nonatomic) UIEdgeInsets margin
Discussion
The margin around the controls.
Declared In
RBSliderField.h
spacing
The spacing between the slider and the slider labels.
@property (nonatomic) CGFloat spacing
Discussion
The spacing between the slider and the slider labels.
Declared In
RBSliderField.h
range
The size of the available range.
@property (nonatomic, readonly) float range
Discussion
The size of the available range.
Declared In
RBSliderField.h
disableStartHandle
Disable the start handle. Stops the handle from being moved. Default = NO
.
@property (nonatomic) BOOL disableStartHandle
Discussion
Disable the start handle. Stops the handle from being moved. Default = NO
.
Declared In
RBSliderField.h
disableEndHandle
Disable the end handle. Stops the handle from being moved. Default = NO
.
@property (nonatomic) BOOL disableEndHandle
Discussion
Disable the end handle. Stops the handle from being moved. Default = NO
.
Declared In
RBSliderField.h
– setMinimumValue:maximumValue:startValue:endValue:
Called to set the slider values. All values must be greater than zero.
You may use RBSliderFieldDelegate
delegate to format and present values differently.
The minimum and maximum range is set to equal minimum and maximum values.
- (void)setMinimumValue:(float)minimumValue maximumValue:(float)maximumValue startValue:(float)startValue endValue:(float)endValue
Parameters
minimumValue |
The smallest possible value that may be selected. |
---|---|
maximumValue |
The largest possible value that may be selected. |
startValue |
The inital starting value. |
endValue |
The inital ending value. |
Discussion
Called to set the slider values. All values must be greater than zero.
You may use RBSliderFieldDelegate
delegate to format and present values differently.
The minimum and maximum range is set to equal minimum and maximum values.
Declared In
RBSliderField.h
– setMinimumValue:maximumValue:startValue:endValue:minimumRange:maximumRange:
Called to set the slider values. All values must be greater than zero.
You may use RBSliderFieldDelegate
delegate to format and present values differently.
- (void)setMinimumValue:(float)minimumValue maximumValue:(float)maximumValue startValue:(float)startValue endValue:(float)endValue minimumRange:(float)minimumRange maximumRange:(float)maximumRange
Parameters
minimumValue |
The smallest possible value that may be selected. |
---|---|
maximumValue |
The largest possible value that may be selected. |
startValue |
The inital starting value. |
endValue |
The inital ending value. |
minimumRange |
The smallest range (difference between endValue - startValue) that can be set. |
maximumRange |
The largest range (difference between endValue - startValue) that can be set. |
Discussion
Called to set the slider values. All values must be greater than zero.
You may use RBSliderFieldDelegate
delegate to format and present values differently.
Declared In
RBSliderField.h