共用方式為


UITableViewDelegate.ShouldHighlightRow(UITableView, NSIndexPath) 方法

定義

在醒目提示之前呼叫。 如果這個方法傳 false 回 ,則不會反白顯示資料列。

[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

參數

tableView
UITableView

資料 UITableView 列所在的 。

rowIndexPath
NSIndexPath

要反白顯示之資料列的位置。

傳回

true 如果應該反白顯示資料列,則為 , false 否則為 。

屬性

備註

在高連接之前呼叫這個方法 (請參閱 備註中的 UITableView 「醒目提示和選取」討論。 應用程式開發人員可以覆寫這個方法,以更精細地控制資料列選取。

這個方法的預設實作會傳 true 回 。

適用於