For my universal application, I want to keep some settings shared by diferent controllers out of my code, like font names, colors, row height information. What is the best way to do that in IOS? plist,a separete xml file, a txt file?
Tnx
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 create som kind on settings class which you can easily write to a plist file using NSCoding.
If you make this class a singleton you then don’t need to load the plist file in all the controllers. Use the create SynthesizeSingleton.h from cocoawithlove.