@interface HBDiscreteSliderTableCell : PSControlTableCell


class HBDiscreteSliderTableCell : PSControlTableCell

The HBDiscreteSliderTableCell class in CepheiPrefs is a subclass of the standard slider cell, which displays a vertical line at every whole number. Additionally, when dragging the slider, it jumps to these lines so the user’s preference will always be a whole number.

It is no longer necessary to use this as of iOS 8.2, which has built in isSegmented and segmentCount parameters on PSSliderCell. This class is kept for backwards compatibility, and will use the built-in implementation on iOS 8.2 and newer.

Requires iOS 7.0 or later. A normal slider is shown for older versions.

Specifier Parameters

All parameters specific to PSSliderCell are applicable here. There are no custom parameters.

Example Usage

  • The slider control.



    @property (nonatomic, retain) PSDiscreteSlider *control;


    var control: PSDiscreteSlider! { get set }