How can I have a static dictionary placed in app delegate that all classes can use?
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.
You could use NSUserDefaults, as you can access them fraom everywhere in your application.
You set the value as a regular dictionary, the only difference is that you should force-save them:
You access them also in a dictionary manner: