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

Declared In

RBSliderField.h

  margin

The margin around the controls.

@property (nonatomic) UIEdgeInsets margin

Declared In

RBSliderField.h

  spacing

The spacing between the slider and the slider labels.

@property (nonatomic) CGFloat spacing

Declared In

RBSliderField.h

  labelsEnabled

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

@property (nonatomic) BOOL labelsEnabled

Declared In

RBSliderField.h

  minimumRange

The minimum size of the selected range.

@property (nonatomic, readonly) float minimumRange

Declared In

RBSliderField.h

  maximumRange

The maximum size of the selected range.

@property (nonatomic, readonly) float maximumRange

Declared In

RBSliderField.h

  minimumValue

The minimum value of the available range.

@property (nonatomic, readonly) float minimumValue

Declared In

RBSliderField.h

  maximumValue

The maximum value of the available range.

@property (nonatomic, readonly) float maximumValue

Declared In

RBSliderField.h

  startValue

The start value of the selected range.

@property (nonatomic) float startValue

Declared In

RBSliderField.h

  endValue

The end value of the selected range.

@property (nonatomic) float endValue

Declared In

RBSliderField.h

  startPercentage

The start percentage of the selected range.

@property (nonatomic, readonly) float startPercentage

Declared In

RBSliderField.h

  endPercentage

The end percentage of the selected range.

@property (nonatomic, readonly) float endPercentage

Declared In

RBSliderField.h

  range

The size of the available range.

@property (nonatomic, readonly) float range

Declared In

RBSliderField.h

  selectedRange

The size of the selected range.

@property (nonatomic, readonly) float selectedRange

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

Declared In

RBSliderField.h

  disableStartHandle

Disable the start handle. Stops the handle from being moved. Default = NO.

@property (nonatomic) BOOL disableStartHandle

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

Declared In

RBSliderField.h

  disableEndHandle

Disable the end handle. Stops the handle from being moved. Default = NO.

@property (nonatomic) BOOL disableEndHandle

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.

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.

Declared In

RBSliderField.h