Instance Method インスタンスメソッド

accessibilityScroll(_:)

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

Declaration 宣言

func accessibilityScroll(_ direction: UIAccessibilityScrollDirection) -> Bool

Parameters パラメータ

direction

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

Return Value 戻り値

true if the scrolling action succeeds; otherwise, false. By default, this method returns false.

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 true and post the pageScrolled notification.

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

See Also 参照

Performing an Action