0

I have a working code but that was deprecated.

The following part of the code is the line with a warning.

let dict = NSKeyedUnarchiver.unarchiveObject(with: outData) as! NSDictionary the following code is the warning that I got

'unarchiveObject(with:)' was deprecated in iOS 12.0: Use +unarchivedObjectOfClass:fromData:error: instead

I don't have any idea about the working of this unarchivedObjectOfClass:fromData:error:

I need to remove this warning, anyone has any idea about this?

SpH
  • 5
  • 4
  • Does this answer your question? [How to NSKeyedUnarchiver.unarchiveObject](https://stackoverflow.com/questions/55982244/how-to-nskeyedunarchiver-unarchiveobject) – RTXGamer May 13 '22 at 06:24

0 Answers0