Instance Method

synchronize()

Waits for any pending asynchronous updates to the defaults database and returns; this method is unnecessary and shouldn't be used.

Declaration

func synchronize() -> Bool

Return Value

true if the data was saved successfully to disk, otherwise false.

See Also

Legacy

init?(user: String)

Creates a user defaults object initialized with the defaults for the specified user account.

Deprecated
class func resetStandardUserDefaults()

This method has no effect and shouldn't be used.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software