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