Protocol: UIAccessibilityContainer

Overview

The UIAccessibilityContainer informal protocol provides a way for UIView subclasses to make selected components accessible as separate elements. For example, a view might contain icons or drawn text that, to end users, appear and function as separate items. But because these components are not implemented as instances of UIView, they are not automatically accessible to users with disabilities. Therefore, such a container view should implement the UIAccessibilityContainer methods to supply accessibility information about these components to assistive applications such as VoiceOver.Returns the accessibility element at the specified index.Returns the number of accessibility elements in the container.Returns the index of the specified accessibility element.

Instance Method Summary (collapse)

Instance Method Details

- (Object) accessibilityElementAtIndex(index)

Returns the accessibility element at the specified index.

Parameters:

  • index (Integer)

    The index of the accessibility element.

Returns:

  • (Object)

    The accessibility element at the specified index, or nil if none exists.

- (Integer) accessibilityElementCount

Returns the number of accessibility elements in the container.

Returns:

  • (Integer)

    The number of accessibility elements in the container. By default, this method returns 0.

- (Integer) indexOfAccessibilityElement(element)

Returns the index of the specified accessibility element.

Parameters:

  • element (Object)

    The accessibility element.

Returns:

  • (Integer)

    The index of the specified accessibility element, or NSNotFound if the element does not exist.