I am new using NSCoding protocol. I understand how it works, but I don’t know how to save and load the data. I’ve tried with NSKeyedArchiver.archiveRootObject(_:toFile:) and NSKeyedUnarchiver.unarchiveObject(withFile:), but I get a warning saying that they were deprecated. What method should I use?
Powered by WPeMatico