NSKeyedArchiver, a concrete subclass of NSCoder, provides a way to encode objects (and scalar values) into an architecture-independent format that can be stored in a file.
I was wondering whether or not it is possible to use the NSCoder method: - (void)encodeObject:(id)objv forKey:(…
iphone nsarray nskeyedarchiver gamekitI'm trying to store an Integer and retrieve it using KeyChain. This is how I save it: func SaveNumberOfImagesTaken() { let …
ios swift keychain nskeyedarchiverI have an array of objects each with a number of properties. Here is some sample data taken by looping …
arrays swift nsuserdefaults nskeyedarchiver persistent-storageI have a struct containing a struct and an NSObject that I want to serialize into an NSData object: struct …
swift serialization struct nsdata nskeyedarchiverIs the parameter for NSKeyedArchiver archivedDataWithRootObject: supposed to be the array I am trying to save, or the array converted …
objective-c cocoa-touch nsmutablearray nsdata nskeyedarchiverI'm hoping this isn't something to do with the fact that I'm using a Mutable array here, but this one …
objective-c cocoa nsmutablearray nskeyedarchiver archivingWith iOS 12, archiveRootObject:toFile:has been deprecated. Can anyone suggest a streamlined alternative to archiving objects to a file? //Generic …
objective-c nskeyedarchiver ios12I have a custom class that I wish to save and load. The class contains an NSDate, an NSString, and …
xcode memory-management nskeyedarchiver nscoding saving-dataI'm having trouble retrieving a saved NSMutableArray containing a custom object. The app crashes and the console reports http://pastie.…
iphone nsmutablearray nsuserdefaults nskeyedarchiverPlease help me! I am stuck in a loop and can't find my way out. I am trying to learn …
ios swift nskeyedarchiver