Index

RBSliderView.h

Protocols

Classes


RBSliderView

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.

Properties

A delegate to receive slider value changes and extend string formatting.
public weak delegate RBSliderViewDelegate? { get set }

The margin around the controls.
public margin UIEdgeInsets { get set }

The spacing between the slider and the slider labels.
public spacing CGFloat { get set }

Whether or not the range label is enabled. Default = YES.
public labelsEnabled Bool { get set }

The minimum size of the selected range.
public minimumRange Float { get }

The maximum size of the selected range.
public maximumRange Float { get }

The minimum value of the available range.
public minimumValue Float { get }

The maximum value of the available range.
public maximumValue Float { get }

The start value of the selected range.
public startValue Float { get set }

The end value of the selected range.
public endValue Float { get set }

The start percentage of the selected range.
public startPercentage Float { get }

The end percentage of the selected range.
public endPercentage Float { get }

The size of the available range.
public range Float { get }

The size of the selected range.
public selectedRange Float { get }

Hide the start handle. Useful to make this function like a normal non-range slider. Default = NO.
public hideStartHandle Bool { get set }

Disable the start handle. Stops the handle from being moved. Default = NO.
public disableStartHandle Bool { get set }

Hide the end handle. Useful to make this function like a normal non-range slider in reverse. Default = NO.
public hideEndHandle Bool { get set }

Disable the end handle. Stops the handle from being moved. Default = NO.
public disableEndHandle Bool { get set }

Functions

Called to set the slider values. All values must be greater than zero. You may use RBSliderViewDelegate delegate to format and present values differently. The minimum and maximum range is set to equal minimum and maximum values.
@param minimumValue : The smallest possible value that may be selected.
@param maximumValue : The largest possible value that may be selected.
@param startValue : The inital starting value.
@param endValue : The inital ending value.
- (void)setMinimumValue:(float)minimumValue maximumValue:(float)maximumValue startValue:(float)startValue endValue:(float)endValue;

Called to set the slider values. All values must be greater than zero. You may use RBSliderViewDelegate delegate to format and present values differently.
@param minimumValue : The smallest possible value that may be selected.
@param maximumValue : The largest possible value that may be selected.
@param startValue : The inital starting value.
@param endValue : The inital ending value.
@param minimumRange : The smallest range (difference between endValue - startValue) that can be set.
@param maximumRange : The largest range (difference between endValue - startValue) that can be set.
- (void)setMinimumValue:(float)minimumValue maximumValue:(float)maximumValue startValue:(float)startValue endValue:(float)endValue minimumRange:(float)minimumRange