Contents

init(forReadingWith:)

Initializes an archiver to decode data from the specified location.

Declaration

init(forReadingWith data: Data)

Parameters

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

Related Documentation

  • Archives and Serializations Programming Guide

Creating a Keyed Unarchiver