iOS Reference Library Apple Developer
Search

Slider Element

Table 1 lists the keys that may be placed in a dictionary that is associated with the PSSliderSpecifier type. This element displays a slider that you can use to specify a continuous range of values for the user.

Table 1  Keys for the PSSliderSpecifier dictionary

Key

Value type

Value

Type

String

The value of this key is always set to PSSliderSpecifier.

This key is required.

Key (required)

String

The preference key identifying the value. This is the string you use this to retrieve the preference value from the defaults database.

This key is required.

DefaultValue (required)

Real

The default value for the preference key. This value is returned when the specified preferences key (represented by the Key entry) is not present in the preferences database.

This key is required.

MinimumValue (required)

Real

The minimum value for the slider.

This key is required.

MaximumValue (required)

Real

The maximum value for the slider.

This key is required.

MinimumValueImage

String

The image to display on the side of the slider representing the minimum value. This image should be 21 by 21 pixels.

MaximumValueImage

String

The image to display on the side of the slider representing the maximum value. This image should be 21 by 21 pixels.




Last updated: 2010-04-27

Did this document help you? Yes It's good, but... Not helpful...