Adds the contents of the specified dictionary to the registration domain.
SDKs
- iOS 2.0+
- macOS 10.0+
- tvOS 9.0+
- watchOS 2.0+
Framework
- Foundation
Declaration
func register(defaults registrationDictionary: [String : Any])
Parameters
dictionary
The dictionary of keys and values you want to register.
Discussion
If there is no registration domain, one is created using the specified dictionary, and registration
is added to the end of the search list.
The contents of the registration domain are not written to disk; you need to call this method each time your application starts. You can place a plist file in the application's Resources directory and call register(defaults:)
with the contents that you read in from that file.