[英]How should I store my static text data inside an IOS app
I have about 100-150kb of data(string) and I want to display it in my app. 我有大约100-150kb的数据(字符串),我想在我的应用程序中显示它。
I was reading about Core Data, but because I won't change my data I am not sure if this is the correct way to do it. 我正在阅读有关Core Data的内容,但由于我不会更改我的数据,因此我不确定这是否是正确的方法。
What method should I choose for storing this data ? 我应该选择哪种方法来存储这些数据?
There are several ways to store data in an iOS-App. 有几种方法可以在iOS-App中存储数据。 This sounds like plist-files are the best way for your case. 这听起来像plist文件是你的情况下的最佳方式。 In plists (property-lists) you can store data organized as a dictionary for example. 在plists(属性列表)中,您可以存储组织为字典的数据。
EDIT: 编辑:
But if you want to use your strings for localization in your app I recommend using StringFiles. 但是如果你想在你的应用程序中使用你的字符串进行本地化,我建议使用StringFiles。 For localization purposes you can access them more easily. 出于本地化目的,您可以更轻松地访问它们。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.