Contents

archivedData(withRootObject:)

Returns a data object that contains the encoded form of the object graph formed by the given root object.

Declaration

class func archivedData(withRootObject rootObject: Any) -> Data

Parameters

  • rootObject:

    The root of the object graph to archive.

Return Value

An NSData object containing the encoded form of the object graph whose root object is rootObject. The format of the archive is PropertyListSerialization.PropertyListFormat.binary.

See Also

Archiving Data