简体   繁体   English

从NSMutablearray保存和检索数据

[英]Saving and retrieving data from NSMutablearray

I have a NSMutableArray holding string data. 我有一个NSMutableArray保存字符串数据。

I want to save my data. 我想保存我的数据。 When i turn off the application and relaunch the application my saved data need to be presented. 当我关闭该应用程序并重新启动该应用程序时,需要显示我保存的数据。

And I need to know where the file saved. 而且我需要知道文件保存在哪里。

This question is basically the same as yours: Saving a NSArray 这个问题基本上与您的相同: 保存NSArray

Another option is to save it in NSUserDefaults . 另一种选择是将其保存在NSUserDefaults

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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