Protocol

UIAccessibilityReadingContent

Methods to implement on an object that represents content that is intended to be read by users, such as a book or an article.

Declaration

@protocol UIAccessibilityReadingContent

Overview

To give VoiceOver users a superior, continuous reading experience, you can implement this protocol on an element that represents readable content, characterize it with the UIAccessibilityTraitCausesPageTurn trait, and use the UIAccessibilityScrollDirectionNext and UIAccessibilityScrollDirectionPrevious constants to enable page turning.

Topics

Accessing the Content on a Page

- accessibilityLineNumberForPoint:

Returns the line number that contains the specified point.

Required.

- accessibilityAttributedContentForLineNumber:

Returns the styled text associated with the specified line number.

- accessibilityContentForLineNumber:

Returns the text associated with the specified line number.

Required.

- accessibilityFrameForLineNumber:

Returns the onscreen frame associated with the specified line number.

Required.

- accessibilityAttributedPageContent

Returns the styled text displayed on the current page.

- accessibilityPageContent

Returns the text displayed on the current page.

Required.

See Also

Behaviors

UIAccessibilityFocus

An informal protocol that provides a way to find out whether an assistive technology, such as VoiceOver, is focused on an accessible element.

UIAccessibilityIdentification

Methods that associate a unique identifier with elements in your user interface.

UIAccessibilityContentSizeCategoryImageAdjusting

Methods to determine when to adjust images for different content size categories.