简体   繁体   中英

How to add files to .plist in xcode iphone project?

I have a txt file with values(All english words) and am parsing the values from txt file in my code. But, it takes a long time to parse. I want to add the the values with keys in plist. I don't know how to add files in plist file . Can anyone please guide me to add files into plist? I searched about this in Google and i got some ideas to parse the file from plist but not get the solution to add files to plist. Now am having the values in txt file like this,

Apple
Samsung
Nokia
Motorola
LG
Sony
iPhone
HTC
iPad
Mac

I just imported this txt file in my xcode and parsed the txt file in a class. Now, i asked to use this txt file as property list. How can i do this? Please help me. I don't have any more ideas on this.

Please help me. Thanks in advance.

Please read this question and answer. You can get some ideas.

Steps to create and edit a plist file in Xcode

Thanks.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM