共用方式為


UITableViewCell.SelectedBackgroundView 屬性

定義

選取儲存格時做為儲存格背景使用的檢視。

public virtual UIKit.UIView SelectedBackgroundView { [Foundation.Export("selectedBackgroundView", ObjCRuntime.ArgumentSemantic.Strong)] get; [Foundation.Export("setSelectedBackgroundView:", ObjCRuntime.ArgumentSemantic.Strong)] set; }
member this.SelectedBackgroundView : UIKit.UIView with get, set

屬性值

預設為 null [純資料表], null 而 [非] 則為 [群組樣式資料表]。

這個值可以是 null

屬性

備註

UITableView 只有在選取儲存格時,才會將此 Proerty 的值新增為子檢視。 如果不是 ,則會將它 null 新增為正上方 BackgroundView 的子檢視,否則會新增至所有其他檢視後面。

如果 SetSelected(Boolean, Boolean) 呼叫 ,這個檢視會以動畫顯示,並以 Alpha 淡出顯示。

適用於