Attempt to set a non-property-list object as an NSUserDefaults

I thought I knew what was causing this error, but I can’t seem to figure out what I did wrong. Here is the full error message I am getting: Attempt to set a non-property-list object ( “<BC_Person: 0x8f3c140>” ) as an NSUserDefaults value for key personDataArray I have a Person class that I think is … Read more

iOS: How to store username/password within an app?

I have a login-screen in my iOS app. The username and password will be saved in the NSUserDefaults and be loaded into the login-screen again when you enter the app again (of course, NSUserDefaults are permanent). Now, the user have the possibility to disable the username/password saving feature. So the NSUserDefaults will be cleared then. … Read more