简体   繁体   English

我应该如何将静态文本数据存储在IOS应用程序中

[英]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.

相关问题 我应该为我的ios应用程序使用什么类型的数据存储? - What type of data store should I use for my ios app? 我应该如何或在哪里存储我在iOS应用程序中全局需要的对象实例? - How or where should I store object instances that I require globally within my iOS app? 我应该如何存储Cocoa应用数据? - How should I store Cocoa app data? 如何管理/存储 static 和 IOS 应用程序的动态数据 - How to manage/store static and dynamic data for an IOS App 有一些静态数据,我应该如何存储它们 - got some static data,not much,how should I store them IOS:我应该在将同一个应用程序提交到 App Store 之前删除我的企业应用程序吗? - IOS : Should I delete my enterprise app before I submit the same app to App Store? 如何通过iOS应用将私有应用数据存储在Google云端硬盘上? - How do I store private app data on Google Drive with my iOS app? 如何在基于iOS的CMS应用程序中存储数据? - How to store data inside an iOS-based CMS app? 我应该在我的 iOS 推送通知应用程序中使用核心数据吗? - Should I use core data at my iOS Push Notification App? 如何安排对服务器的每小时请求并将数据存储在我自己的服务器上以从iOS应用访问? - How can I schedule hourly request to a server and store data on my own server to access from iOS app?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM