Initializes a newly allocated dictionary using the keys and values found at a given URL.
- iOS 11.0+
- macOS 10.13+
- Mac Catalyst 13.0+
- tvOS 11.0+
- watchOS 4.0+
A URL that identifies a resource containing a string representation of a property list whose root object is a dictionary.
On failure, a reference to the error that occurred.
An initialized dictionary that contains the dictionary at
nil if there is an error or if the contents of the resource are an invalid representation of a dictionary.
The dictionary representation in the file identified by
url must contain only property list objects (
NSDictionary objects). For more details, see Property List Programming Guide. The objects contained by this dictionary are immutable, even if the dictionary is mutable.
This initializer throws if there is an error loading the URL, or if the contents of the resource are an invalid representation of a dictionary.