Instance Method

accessibilityScroll:

Scrolls screen content in an application-specific way and returns the success or failure of the action.

Declaration

- (BOOL)accessibilityScroll:(UIAccessibilityScrollDirection)direction;

Parameters

direction

A constant that specifies the direction of the scrolling action. See UIAccessibilityScrollDirection for descriptions of valid constants.

Return Value

YES if the scrolling action succeeds; otherwise, NO. By default, this method returns NO.

Discussion

Implement this method if a view in the view hierarchy supports a scroll by page action.

  • If the scrolling action succeeds for the specified direction, return YES and post the UIAccessibilityPageScrolledNotification notification.

  • If the scrolling action fails, accessibilityScroll: is called on a parent view in the hierarchy.

See Also

Performing an Action

- accessibilityActivate

Tells the element to activate itself and report the success or failure of the operation.

- accessibilityIncrement

Tells the accessibility element to increment the value of its content.

- accessibilityDecrement

Tells the accessibility element to decrement the value of its content.

- accessibilityPerformEscape

Dismisses a modal view and returns the success or failure of the action.

- accessibilityPerformMagicTap

Performs a salient action.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software