Szerkesztés

Megosztás a következőn keresztül:


UITableViewDelegate.RowSelected(UITableView, NSIndexPath) Method

Definition

Called when the row specified by indexPath is selected.

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

Parameters

tableView
UITableView

Table view containing the row.

indexPath
NSIndexPath

Location of the row that has become selected.

Attributes

Remarks

This method can be used to perform any processing required when a row is selected, such as displaying a Checkmark accessory. In such an example, use the RowDeselected(UITableView, NSIndexPath) to hide the checkmark.

Alternatively this method may push a new view controller onto a UINavigationController if the table view is part of an hierarchical menu, or display another view or alert depending on the application's requirements.

This method is not called when the table is in editing mode (ie. when Editing is true).

Applies to