UIAPickerWheel Class Reference

Inherits from

Overview

The UIAPickerWheel class allows access to, and control of, wheel elements within a picker.

For an explanation of how to use this class and related classes, see the UI Automation section of “Automating UI Testing” in Instruments User Guide.

Inherited Methods

Table 1 provides a list of methods inherited from UIAPicker.

Table 1  Methods inherited from UIAPicker

Method

Description

wheels

Returns an array representing the wheels of the specified picker.

Tasks

Manipulating Wheels

Methods

selectValue

Drags the wheel to the first row with the specified value.

(undefined) selectValue()
Special Considerations

This method is unsupported for UIAPickerWheel objects backed by a UIADatePicker view in iOS 5 and earlier. Since picker wheels representing years and eras have hundreds of thousands of values, you can only set values that are between the min and max supported values.

values

Returns an array representing the possible item values to select for the wheel.

(Array) values()
Special Considerations

This method is unsupported for UIAPickerWheel objects backed by a UIADatePicker view in iOS 5 and earlier; in such cases, it returns nil. Since picker wheels representing years and eras have hundreds of thousands of values, only the min and max supported values are returned in these cases.