I have a table view. I want to add data into it. I have surfed net and found some sample codes for that. However many of the them are using NSKeyedUnarchiver (encoding, decoding). Why do we need to do this? Any specific reason?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It’s a way to save and restore data in your app. There are several ways to store and retrieve data in iOS; Core Data, SQLite, plists.
NSKeyedArchiveris an easy to understand and easy to use class for data persistence. I’d say the reason you’re seeing it so much is because it’s an easy concept for beginners. The other data persistence methods are less easy to understand.