Edytuj

Udostępnij za pośrednictwem


UITableViewDelegate.WillSelectRow(UITableView, NSIndexPath) Method

Definition

Called when a row is about to be selected.

[Foundation.Export("tableView:willSelectRowAtIndexPath:")]
public virtual Foundation.NSIndexPath WillSelectRow (UIKit.UITableView tableView, Foundation.NSIndexPath indexPath);
abstract member WillSelectRow : UIKit.UITableView * Foundation.NSIndexPath -> Foundation.NSIndexPath
override this.WillSelectRow : UIKit.UITableView * Foundation.NSIndexPath -> Foundation.NSIndexPath

Parameters

tableView
UITableView

Table view containing the row.

indexPath
NSIndexPath

Location of the row about to be selected.

Returns

The NSIndexPath of the row to be selected. Return the indexPath that was passed in to select that row, return an alternate NSIndexPath to select a different row, or return null to cancel selection.

Attributes

Remarks

This method is called after a row is selected (ie. the user has performed a touch-up on the row). Although rows are highlighted on touch-down, this does not indication selection has occurred. Use None to prevent the cell becoming highlighted on touch-down.

This method is not called when the table view's Editing property is true unless AllowsSelectionDuringEditing property is also true.

Applies to