Instance Method


Sets a succinct label on the object that identifies the accessibility element.


- (void)setAccessibilityLabel:(NSString *)accessibilityLabel;



A localized string for identifying the object to the accessibility system. The string you specify should succinctly describe the purpose of the object.


Use this method to change the accessibility label of an object dynamically. You can also set the accessibility label for an object in Xcode from the Identity inspector. If you do not set an accessibility label, the system uses the object’s title string, if present.

An assistive application uses this label to identify the item to a user with disabilities. For example, if a button uses an image to convey its meaning to sighted users, you can assign a label that describes the behavior of the button to users with disabilities.

See Also

Configuring the Accessibility Attributes

- setAccessibilityIdentifier:

Sets the unique identifier string for the interface object.

- setAccessibilityHint:

Sets the description of what happens when performing an action on the accessibility element.

- setAccessibilityValue:

Sets the value of the accessibility element.

- setIsAccessibilityElement:

Sets whether the object is an accessibility element that an assistive app can access.

- setAccessibilityTraits:

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

- setAccessibilityImageRegions:

Marks portions of an image as separate accessible elements.