简体   繁体   中英

Best way to store one large text resources iOS

I am super new to iOS(like I just finished hello world) and I have a large text(1.5k words) file that I would like to show in a modal dialog in my application.

However, I am confused on the best way to store this static text file and load it at runtime. Any help and links would be appreciated.

I see people use .plist, but apparently that is loaded into memory?

To use static texts the best way is to do it taking localization into account from the beginning. Here is a link from Apple Developer showing you how to do it, including how to store strings in a file and loading them into your application.

http://developer.apple.com/library/ios/#documentation/MacOSX/Conceptual/BPInternational/Articles/InternatAndLocaliz.html#//apple_ref/doc/uid/20000277-SW1

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