Contents

className(for:)

Returns the class name with which the archiver class encodes instances of a given class.

Declaration

class func className(for cls: AnyClass) -> String?

Parameters

  • cls:

    The class for which to determine the translation mapping.

Return Value

The class name with which NSKeyedArchiver encodes instances of cls. Returns nil if NSKeyedArchiver does not have a translation mapping for cls.

See Also

Managing Classes and Class Names