Tag: unarchiveObject
-
iOS Swift Save|Load Custom Class Variables As Encoded Object
By using NSKeyedArchiver.archivedData, NSKeyedUnarchiver.unarchiveObject you can actually store the data as compressed zip in the device and recall/unzip them to your class structure Model Class class User: NSObject, NSCoding { // Common var userId: Int = 0 var userFullName: String = “” var userUsername: String = “” var userBiography: String = “” var userRegisterDate: String =…