Upravit

Sdílet prostřednictvím


UITableViewSource.ShouldHighlightRow(UITableView, NSIndexPath) Method

Definition

Called prior to highlighting. If this method returns false, the row will not be highlighted.

[Foundation.Export("tableView:shouldHighlightRowAtIndexPath:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual bool ShouldHighlightRow (UIKit.UITableView tableView, Foundation.NSIndexPath rowIndexPath);
abstract member ShouldHighlightRow : UIKit.UITableView * Foundation.NSIndexPath -> bool
override this.ShouldHighlightRow : UIKit.UITableView * Foundation.NSIndexPath -> bool

Parameters

tableView
UITableView

The UITableView in which the row is located.

rowIndexPath
NSIndexPath

The location of the row being highlighted.

Returns

true if the row should be highlighted, false otherwise.

Attributes

Remarks

This method is called prior to highlighing (see the "Highlighting and selection" discussion in the remarks on UITableView. Application developers can override this method to gain finer-grained control over row selection.

The default implementation of this method returns true.

Applies to