Sets whether the view controller shows an editable view.
SDKs
- iOS 2.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
Framework
- UIKit
Declaration
Parameters
editing
If
true
, the view controller should display an editable view; otherwise,false
.If
true
and one of the custom views of thenavigation
property is set to the value returned by theItem edit
method, the associated navigation controller displays a Done button; otherwise, an Edit button.Button Item animated
If
true
, animates the transition; otherwise, does not.
Discussion
Subclasses that use an edit-done button must override this method to change their view to an editable state if is
is true
and a non-editable state if it is false
. This method should invoke super’s implementation before updating its view.