Closed byzantinist closed 7 years ago
UserDefaults is an quick way to store small amounts of non-sensitive data on the user's phone.
should be
UserDefaults is a quick way to store small amounts of non-sensitive data on the user's phone.
Use Core Data or Realm instead.
Use CoreData or Realm instead.
Persisting our User
Persisting Our User
If you try to build the app right now, the compiler with throw an error saying our using object doesn't conform to the NSCoding protocol.
If you try to build the app right now, the compiler with throw an error saying our user object doesn't conform to the NSCoding protocol.
Storing our Current User in User Defaults
Storing Our Current User in User Defaults
However, a easy hack around this is deleting the app and installing it again on your phone.
However, an easy hack around this is deleting the app and installing it again on your phone.
Grammar issues fixed.
UserDefaults is an quick way to store small amounts of non-sensitive data on the user's phone.
should be
UserDefaults is a quick way to store small amounts of non-sensitive data on the user's phone.
Use Core Data or Realm instead.
should be
Use CoreData or Realm instead.
Persisting our User
should be
Persisting Our User
If you try to build the app right now, the compiler with throw an error saying our using object doesn't conform to the NSCoding protocol.
should be
If you try to build the app right now, the compiler with throw an error saying our user object doesn't conform to the NSCoding protocol.
Storing our Current User in User Defaults
should be
Storing Our Current User in User Defaults
However, a easy hack around this is deleting the app and installing it again on your phone.
should be
However, an easy hack around this is deleting the app and installing it again on your phone.