Wednesday, February 24, 2016

Saving custom objects in NSUserDefaults - Swift

Following is how I implemented "remember me" feature in a recent app I did in swift. I'm saving the user details in NSUserDefaults upon requesting to remember.

2 comments:

Anonymous said...

Wow this is so simple but effective. Just wanted to leave a grateful "Thank you!"
Cheers

Raksmey M3 said...

what if i save it in array?