Edytuj

Udostępnij za pośrednictwem


UIScrollView.ScrollsToTop Property

Definition

If true, then the scroll view will jump to the top of the content when the user taps on the status bar.

[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual bool ScrollsToTop { [Foundation.Export("scrollsToTop")] [ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)] get; [Foundation.Export("setScrollsToTop:")] [ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)] set; }
member this.ScrollsToTop : bool with get, set

Property Value

The default value is false

Attributes

Remarks

If set to true and ShouldScrollToTop returns true, the scroll-to-tap gesture of a tap on the status bar will jump to the top of the content view and fire the ScrolledToTop event.

Applies to

See also