Instance Method

setAccessibilityImageRegions:

Marks portions of an image as separate accessible elements.

Declaration

- (void)setAccessibilityImageRegions:(NSArray<WKAccessibilityImageRegion *> *)accessibilityImageRegions;

Parameters

accessibilityImageRegions

An array of WKAccessibilityImageRegion objects. Each object in the array represents a portion of the interface object’s foreground or background image that should be treated as a separate accessible element.

Discussion

Use this method to associate different accessibility labels with different parts of the object’s image. You might also use this method to assign accessibility information to different parts of a dynamically generated image.

See Also

Configuring the Accessibility Attributes

- setAccessibilityIdentifier:

Sets the unique identifier string for the interface object.

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