iOS Reference Library Apple Developer
Search

UIPickerViewAccessibilityDelegate Protocol Reference

Conforms to
Framework
/System/Library/Frameworks/UIKit.framework
Availability
Available in iOS 4.0 and later.
Declared in
UIAccessibilityAdditions.h

Overview

The UIPickerViewAccessibilityDelegate protocol defines methods you can implement to provide accessibility information for individual components of a picker view.

Tasks

Providing Descriptive Information

Instance Methods

pickerView:accessibilityHintForComponent:

Returns a hint that describes the result of performing an action on the picker view component.

- (NSString *)pickerView:(UIPickerView *)pickerView accessibilityHintForComponent:(NSInteger)component

Return Value

A brief description, in a localized string, of the result of performing an action on the picker view component.

Discussion

Implement this optional method to ensure that the accessibility element representing the picker view provides an appropriate hint for each component. For in-depth information on how to create an appropriate hint, see “Guidelines for Creating Hints” in Accessibility Programming Guide for iOS.

Availability
  • Available in iOS 4.0 and later.
Declared In
UIAccessibilityAdditions.h

pickerView:accessibilityLabelForComponent:

Returns a label that identifies the picker view component.

- (NSString *)pickerView:(UIPickerView *)pickerView accessibilityLabelForComponent:(NSInteger)component

Return Value

A succinct label, in a localized string, that identifies the picker view component.

Discussion

Implement this optional method to ensure that the accessibility element representing the picker view provides an appropriate label for each component. For in-depth information on how to create an appropriate label, see “Crafting Useful Labels and Hints” in Accessibility Programming Guide for iOS.

Availability
  • Available in iOS 4.0 and later.
Declared In
UIAccessibilityAdditions.h



Last updated: 2010-05-18

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