Initializer

init(forReadingWith:)

Initializes an archiver to decode data from the specified location.

Declaration

init(forReadingWith data: Data)

Parameters

data

An archive previously encoded by NSKeyedArchiver.

Return Value

An NSKeyedUnarchiver object initialized for for decoding data.

Discussion

When you finish decoding data, you should invoke finishDecoding().

This method throws an exception if data is not a valid archive.

See Also

Creating a Keyed Unarchiver

init(forReadingFrom: Data)

Initializes an archiver to decode data from the specified location.

init()

Initializes an archiver to decode data.

Deprecated