Instance Method


Sets the unique identifier string for the interface object.


- (void)setAccessibilityIdentifier:(NSString *)accessibilityIdentifier;



A string containing the identifier of the element. Specify nil to clear the existing identifier.


Use the identifier in this property to distinguish between different objects in your app. The identifier string is used solely for programmatic identity, as opposed to many other accessibility attributes.

See Also

Configuring the Accessibility Attributes

- setAccessibilityLabel:

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

- 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.