Any thoughts on this ?
Thanks for shedding some light on this.
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.
NSUserDefaultsis ready made database provided to us. If we use it, we are saving things in database and making fetch operation.If you want your data to be persistent then use
NSUserDefaultsand/or your own database.If you want to share data globally and dont want it to be
persistentthen usesingletonclass.It is based on our requirement if we want a shared class (singleton class) or a database (NSuserDefaults).