persistentDomain(forName:)
Retrieves the settings from the specified persistent domain.
Declaration
func persistentDomain(forName domainName: String) -> [String : Any]?Parameters
- domainName:
The name of the persistent domain. Specify your app’s bundle identifier to retrieve any app-specific keys. Specify the Globaldomain identifier to retrieve keys in the global domain.
Return Value
A dictionary containing the keys and values from the specified domain. If the domain doesn’t contain any keys, or is a volatile domain, the method returns nil.
Discussion
This method retrieves only the keys and values from the specified domain. It doesn’t retrieve keys from other persistent or volatile domains.