how to store values inside Plist and read while runtime in iphone 3.0?.
Thanks in Advance.
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.
If you have an array or dictionary that contains only “standard” data types like strings, dates, numbers, arrays, and dictionaries, you can save the contents to a .plist file with
-[NSArray writeToFile:atomically:]or-[NSDictionary writeToFile:atomically:]. To read the file, use-initWithContentsOfFile:.Note that the application bundle is not writable on iPhone OS devices so you will have to store the file in your app’s Documents directory.