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

  labelsEnabled

Whether or not the range label is enabled. Default = YES.

@property (nonatomic) BOOL labelsEnabled

Discussion

Whether or not the range label is enabled. Default = YES.

Declared In

RBSliderField.h

  minimumRange

The minimum size of the selected range.

@property (nonatomic, readonly) float minimumRange

Discussion

The minimum size of the selected range.

Declared In

RBSliderField.h

  maximumRange

The maximum size of the selected range.

@property (nonatomic, readonly) float maximumRange

Discussion

The maximum size of the selected range.

Declared In

RBSliderField.h

  minimumValue

The minimum value of the available range.

@property (nonatomic, readonly) float minimumValue

Discussion

The minimum value of the available range.

Declared In

RBSliderField.h

  maximumValue

The maximum value of the available range.

@property (nonatomic, readonly) float maximumValue

Discussion

The maximum value of the available range.

Declared In

RBSliderField.h

  startValue

The start value of the selected range.

@property (nonatomic) float startValue

Discussion

The start value of the selected range.

Declared In

RBSliderField.h

  endValue

The end value of the selected range.

@property (nonatomic) float endValue

Discussion

The end value of the selected range.

Declared In

RBSliderField.h

  startPercentage

The start percentage of the selected range.

@property (nonatomic, readonly) float startPercentage

Discussion

The start percentage of the selected range.

Declared In

RBSliderField.h

  endPercentage

The end percentage of the selected range.

@property (nonatomic, readonly) float endPercentage

Discussion

The end percentage of the selected range.

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

  selectedRange

The size of the selected range.

@property (nonatomic, readonly) float selectedRange

Discussion

The size of the selected range.

Declared In

RBSliderField.h

  hideStartHandle

Hide the start handle. Useful to make this function like a normal nonrange slider. Default = NO.

@property (nonatomic) BOOL hideStartHandle

Discussion

Hide the start handle. Useful to make this function like a normal nonrange slider. Default = NO.

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

  hideEndHandle

Hide the end handle. Useful to make this function like a normal nonrange slider in reverse. Default = NO.

@property (nonatomic) BOOL hideEndHandle

Discussion

Hide the end handle. Useful to make this function like a normal nonrange slider in reverse. 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