Instance Property

accessibilityTraits

The combination of accessibility traits that best characterize the accessibility element.

Declaration

@property(nonatomic) UIAccessibilityTraits accessibilityTraits;

Discussion

The default value for this property is UIAccessibilityTraitNone unless the receiver is a UIKit control, in which case the value is the standard set of traits associated with the control.

If you implement a custom control or view, you need to select all the accessibility traits that best characterize the object and combine them with its superclass’s traits (in other words, with super.accessibilityTraits) by performing an OR operation. See Accessibility Traits for a complete list of traits.

See Also

Configuring an Accessibility Element

accessibilityActivationPoint

The activation point for the accessibility element, in screen coordinates.

accessibilityElementsHidden

A Boolean value indicating whether the accessibility elements contained within this accessibility element are hidden.

accessibilityFrame

The frame of the accessibility element, in screen coordinates.

accessibilityHint

A brief description of the result of performing an action on the accessibility element, in a localized string.

accessibilityLabel

A succinct label that identifies the accessibility element, in a localized string.

accessibilityLanguage

The language in which to speak the accessibility element's label, value, and hint.

accessibilityPath

The path of the element, in screen coordinates.

accessibilityValue

The value of the accessibility element, in a localized string.

accessibilityViewIsModal

A Boolean value indicating whether VoiceOver should ignore the elements within views that are siblings of the receiver.

shouldGroupAccessibilityChildren

A Boolean value indicating whether VoiceOver should group together the elements that are children of the receiver, regardless of their positions on the screen.

accessibilityNavigationStyle

The navigation style to apply to the object and its elements.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software