UIScrollView.ScrollsToTop 属性

定义

如果为 true,则当用户点击状态栏时,滚动视图将跳转到内容顶部。

[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

属性值

默认值为 false

属性

注解

如果设置为 trueShouldScrollToTop 返回 true,则状态栏上点击的滚动点击手势将跳转到内容视图的顶部并触发 ScrolledToTop 事件。

适用于

另请参阅