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 仅当选定单元格时,才会将此过程的值添加为子视图。 如果 不是 null,则将其作为子视图直接添加到 上方BackgroundView,否则在所有其他视图后面。

如果 SetSelected(Boolean, Boolean) 调用 ,则此视图将采用 alpha 淡出动画。

适用于