I have a simple question that I’m not able to find the answer to.
Can I add a new key/value to my userdefault just by
[userdefaults setBool:YES forKey:@"onSwitch"]
Or must it be in the defaults.plist first?
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.
Yes you can add a new key/value to your user-defaults.
If it exists it will overwrite it, otherwise a new key/value pair will be created.