UITableView.ScrollToNearestSelected Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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