Top "Nskeyedunarchiver" questions

NSKeyedUnarchiver, a concrete subclass of NSCoder, defines methods for decoding a set of named objects (and scalar values) from a keyed archive.

Unarchive Array with NSKeyedUnarchiver unarchivedObject(ofClass:from:)

Since upgrading to Swift 4.2 I've found that many of the NSKeyedUnarchiver and NSKeyedArchiver methods have been deprecated and we must …

ios swift nskeyedunarchiver ios12
Swift only way to prevent NSKeyedUnarchiver.decodeObject crash?

NSKeyedUnarchiver.decodeObject will cause a crash / SIGABRT if the original class is unknown. The only solution I have seen to …

ios swift nskeyedunarchiver
How can I decode an object when original class is not available?

I have an iOS 7 application that saves a custom object to app's iCloud Docs folder as a file. For this, …

ios swift nscoding nskeyedunarchiver
How to NSKeyedUnarchiver.unarchiveObject

I have a working code that works but deprecated: This part is fine: let archived = try? NSKeyedArchiver.archivedData(withRootObject: [defaultRecord] …

swift ios12 nskeyedunarchiver
Swift - NSKeyedUnarchiver unarchiveObjectWithData in NSMutableArray

var objects: AnyObject? = NSKeyedUnarchiver.unarchiveObjectWithData(data) How to turn objects into NSMutableArray ? I archived NSMutableArray.

ios swift nsmutablearray nskeyedunarchiver