Instance Property

accessibilityLabel

A string that succinctly identifies the accessibility element.

Declaration

@property(nonatomic, strong) NSString *accessibilityLabel;

Discussion

The label is a very short, localized string that identifies the accessibility element, but does not include the type of the control or view. For example, the label for a Save button is “Save,” not “Save button.”

By default, standard UIKit controls and views have labels that derive from their titles. If you provide a custom control or view, however, you need to set this property appropriately so that assistive applications can supply accurate information to users with disabilities.

See Also

Accessing the Attributes of an Accessibility Element

accessibilityHint

A string that briefly describes the result of performing an action on the accessibility element.

accessibilityValue

A string that represents the current value of the accessibility element.

accessibilityFrame

The frame of the accessibility element, in screen coordinates.

accessibilityFrameInContainerSpace

The frame of the accessibility element, in the coordinate space of its container view.

accessibilityTraits

The combination of traits that best characterize the accessibility element.