dataFromPropertyList(_:format:errorDescription:)
This method is obsolete and will be deprecated soon.
Declaration
class func dataFromPropertyList(_ plist: Any, format: PropertyListSerialization.PropertyListFormat, errorDescription errorString: UnsafeMutablePointer<NSString?>?) -> Data?Parameters
- plist:
A property list object.
- format:
A property list format. For possible values, see Propertylistformat.
- errorString:
Upon return, if the conversion is successful,
errorStringisnil. If the conversion fails, upon return contains a string describing the nature of the error.
Return Value
An NSData object containing plist in the format specified by format.
Discussion
This method is obsolete and will be deprecated soon. Use data(fromPropertyList:format:options:) instead.