Upravit

Sdílet prostřednictvím


UITableViewCell.SetSelected(Boolean, Boolean) Method

Definition

Sets the selected state of the cell, optionally animating the transition between the states.

[Foundation.Export("setSelected:animated:")]
public virtual void SetSelected (bool selected, bool animated);
abstract member SetSelected : bool * bool -> unit
override this.SetSelected : bool * bool -> unit

Parameters

selected
Boolean

true to select the cell, false to deselect.

animated
Boolean

true to animate the selected transition, false to make the transition immediate.

Attributes

Remarks

Selection changes the the appearance of the cell's labels, image, and background.

Applies to