I’ve a problem. I have the file root.plist with many preferences but, when I use:
NSUserDefaults standardUserDefaults
to read it, nothing happened. Why? Can you help me?
Thanks
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.
Why would it read that file? User defaults aren’t stored in a plist in your application bundle. If that file contains “first-run” preferences to set for all users you will need to read from the file yourself and copy the values to defaults using the standard methods.