i need to store some objects from table.
It will be no more than 100 objects.
Is it good way to store it like array in NSUserDefaults? Or there is any better way?
i need to store some objects from table. It will be no more than
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.
Although you can store this is
NSUserDefaultsusing[[NSUserDefaults standardUserDefaults] arrayForKey:@"key"];you probably shouldn’t. Defaults was designed to store VERY small ammounts of data, like a users preferences (thus the name). If you wish to store more data than this, then you may want to look into.plists,NSDocumentDirectory,Core-Data, orSQLitedatabases.