HBDiscreteSliderTableCell Class Reference

Inherits from PSControlTableCell
Declared in HBDiscreteSliderTableCell.h

Overview

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.

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

<dict>
    <key>cellClass</key>
    <string>HBDiscreteSliderTableCell</string>
    <key>default</key>
    <real>5</real>
    <key>defaults</key>
    <string>ws.hbang.libcephei.demo</string>
    <key>key</key>
    <string>Discrete</string>
    <key>label</key>
    <string>Discrete</string>
    <key>max</key>
    <real>15</real>
    <key>min</key>
    <real>1</real>
</dict>