Instance Property

editButtonItem

Returns a bar button item that toggles its title and associated state between Edit and Done.

Declaration

@property(nonatomic, readonly) UIBarButtonItem *editButtonItem;

Discussion

If one of the custom views of the navigationItem property is set to the returned object, the associated navigation bar displays an Edit button if editing is NO and a Done button if editing is YES. The default button action invokes the setEditing:animated: method.

See Also

Adding Editing Behaviors to Your View Controller

editing

A Boolean value indicating whether the view controller currently allows the user to edit the view contents.

- setEditing:animated:

Sets whether the view controller shows an editable view.