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 Behavior

Accessibility Traits

Tell an assistive application how an accessibility element behaves or should be treated by setting these accessibility traits

UIAccessibilityTraits

A mask that contains the OR combination of the accessibility traits that best characterize an accessibility element.

accessibilityCustomRotors

An array of custom rotors for the current element.

accessibilityElementsHidden

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

accessibilityNotifiesWhenDestroyed

A Boolean value that indicates whether a custom accessibility object sends a notification when its corresponding UI element is destroyed.

accessibilityRespondsToUserInteraction

A Boolean value indicating whether the element performs an action based on user interaction.

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.