UIKit.UIScrollViewDelegate.ShouldScrollToTop Method
Called by the scroll view to determine whether it should scroll to the top of the content.

Syntax

[Foundation.Export("scrollViewShouldScrollToTop:")]
public virtual bool ShouldScrollToTop (UIScrollView scrollView)

Parameters

scrollView
Scroll view requesting whether scroll is allowed.

Returns

true to allow scrolling to the top of the content, false to prevent it.

Remarks

If this method is not implemented, true is the default. For the scroll-to-top gesture (tap on the status bar) to work, UIScrollView.ScrollsToTop (on UIKit.UIScrollView) must be set to true.

Requirements

Namespace: UIKit
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0