Contents

removePersistentDomain(forName:)

Removes the keys and values from the specified persistent domain.

Declaration

func removePersistentDomain(forName domainName: String)

Parameters

  • domainName:

    The name of the domain to clear. If you specify the identifier for the argument or registration domain, this method throws an exception.

Discussion

This method removes all of the keys and values from the specified domain. After clearing the domain’s contents, this method generates a didChangeNotification for registered observers.

See Also

Managing domain-specific values