rootstrap / ios-base

Boilerplate for new iOS projects using Swift 5. Provides a handful of functionalities.
https://rootstrap.com/
MIT License
264 stars 63 forks source link

Decode user #40

Closed mjurfest closed 7 years ago

mjurfest commented 7 years ago

In the decode method (required init(coder aDecoder: NSCoder)) of the user model, the following line should be: self.id = aDecoder.decodeInteger(forKey: "user-id") instead of self.id = aDecoder.decodeObject(forKey: "user-id")