Instance Method

setEditing:animated:

Toggles the receiver into and out of editing mode.

Declaration

- (void)setEditing:(BOOL)editing animated:(BOOL)animated;

Parameters

editing

YES to enter editing mode, NO to leave it. The default value is NO .

animated

YES to animate the appearance or disappearance of the insertion/deletion control and the reordering control, NO to make the transition immediate.

Discussion

When you call this method with the value of editing set to YES, and the UITableViewCell object is configured to have controls, the cell shows an insertion (green plus) or deletion control (red minus) on the left side of each cell and a reordering control on the right side. This method is called on each visible cell when the setEditing:animated: method of UITableView is invoked. Calling this method with editing set to NO removes the controls from the cell.

See Also

Editing the Cell

editing

A Boolean value that indicates whether the cell is in an editable state.

editingStyle

The editing style of the cell.

UITableViewCellEditingStyle

The editing control used by a cell.

showingDeleteConfirmation

A Boolean value that indicates whether the cell is currently showing the delete-confirmation button.

showsReorderControl

A Boolean value that determines whether the cell shows the reordering control.