Instance Method

accessibilityScrollStatusForScrollView:

Returns a string describing the content at the current offset in the scroll view.

Declaration

- (NSString *)accessibilityScrollStatusForScrollView:(UIScrollView *)scrollView;

Parameters

scrollView

The scroll view containing the content.

Return Value

A custom status string for the current offset.

Discussion

For example, in a user interface that scrolls through the books in a bookcase, you could return “Books 10 through 20”. By default, VoiceOver announces “Page X of Y” while scrolling.

Use the accessibilityAttributedScrollStatusForScrollView: method if portions of your string should be spoken in a different language.

See Also

Providing Descriptive Information

- accessibilityAttributedScrollStatusForScrollView:

Returns an attributed string describing the content at the current offset in the scroll view.