Returns the shared defaults object.
- iOS 2.0+
- macOS 10.0+
- UIKit for Mac 13.0+Beta
- tvOS 9.0+
- watchOS 2.0+
The shared defaults object.
If the shared defaults object doesn‘t yet exist, it‘s created with a search list containing the names of the following domains, in this order:
For managed devices only, a domain containing defaults set by an administrator
NSArgument, consisting of defaults parsed from the application’s arguments
For managed devices by an educational institution only, a domain containing defaults set in the iCloud key-value store
A domain identified by the application’s bundle identifier
NSGlobal, consisting of defaults meant to be seen by all applications
NSRegistration, a set of temporary defaults whose values can be set by the application to ensure that searches will always be successful
The defaults are initialized for the current user. Subsequent modifications to the standard search list remain in effect even when this method is invoked again—the search list is guaranteed to be standard only the first time this method is invoked.