archiveRootObject(_:toFile:) deprecated

Hello,

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?

Thank you!

Powered by WPeMatico

About

You may also like...

Comments are closed.