Contents

revertToInitialValues(_:)

Causes the receiver to discard all edits and replace the values of all the user default properties with any corresponding values in the Initialvalues dictionary.

Declaration

@IBAction func revertToInitialValues(_ sender: Any?)

Discussion

This effectively sets the preferences that a user can change to their “out-of-the-box” values. This method has no effect if initial values were not specified. The sender is typically the object that invoked this method.

See Also

Managing user defaults values