HBStepperTableCell

@interface HBStepperTableCell : PSControlTableCell

The HBStepperTableCell class in CepheiPrefs allows setting a value using a stepper control (minus and plus buttons).

Requires iOS 6.0 or later.

Specifier Parameters

label Required. The label displayed when the value is plural. Use %i to denote where the number should be displayed.
max Required. The highest possible numeric value for the stepper.
min Required. The lowest possible numeric value for the stepper.
singularLabel Required. The label displayed when the value is singular.

Example Usage

<dict>
    <key>cellClass</key>
    <string>HBStepperTableCell</string>
    <key>default</key>
    <real>5</real>
    <key>defaults</key>
    <string>ws.hbang.common.demo</string>
    <key>key</key>
    <string>Stepper</string>
    <key>label</key>
    <string>%i Things</string>
    <key>max</key>
    <real>15</real>
    <key>min</key>
    <real>1</real>
    <key>singularLabel</key>
    <string>1 Thing</string>
</dict>
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, retain) UIStepper *control

    Swift

    var control: UIStepper! { get set }