How to save Array of custom objects to NSUserDefaults

Using NSCoding, NSKeyedArchiver and NSKeyedUnarchiver to save array of custom objects to NSUserDefaults

NSCoding protocol



NSCoding protocol enables an object to be encoded or decoded for archiving and saving to disk.

It declares two methods that your object must implement in order to be encoded and decoded. Continue reading “How to save Array of custom objects to NSUserDefaults”