UIKit.UITableViewDelegate.WillSelectRow Method
Called when a row is about to be selected.

Syntax

[Foundation.Export("tableView:willSelectRowAtIndexPath:")]
public virtual Foundation.NSIndexPath WillSelectRow (UITableView tableView, Foundation.NSIndexPath indexPath)

Parameters

tableView
Table view containing the row.
indexPath
Location of the row about to be selected.

Returns

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

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 UITableViewCellSelectionStyle.None to prevent the cell becoming highlighted on touch-down.

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

Requirements

Namespace: UIKit
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0