Edytuj

Udostępnij za pośrednictwem


UITableView.ScrollToNearestSelected Method

Definition

Automatically scrolls the rows so that the selected row nearest to a given position is moved to that position.

[Foundation.Export("scrollToNearestSelectedRowAtScrollPosition:animated:")]
public virtual void ScrollToNearestSelected (UIKit.UITableViewScrollPosition atScrollPosition, bool animated);
abstract member ScrollToNearestSelected : UIKit.UITableViewScrollPosition * bool -> unit
override this.ScrollToNearestSelected : UIKit.UITableViewScrollPosition * bool -> unit

Parameters

atScrollPosition
UITableViewScrollPosition

Position that the target row should appear (e. top, middle, bottom) once the scrolling is complete.

animated
Boolean

true to animate the scroll, false if the table view should just jump immediately to the new position.

Attributes

Applies to