保存iPhone应用程序设置的最佳方法是什么?

时间:2021-07-24 20:09:48

I'd like to allow user to change the setting of app. But I am not sure where shall I save the configuration.

我想允许用户更改应用程序的设置。但我不知道在哪里可以保存配置。

Is there any local space allocated for app?

是否为app分配了任何本地空间?

1 个解决方案

#1


9  

You should use the NSUserDefaults class for storing settings. It's all documented.

您应该使用NSUserDefaults类来存储设置。这些都记录在案。

#1


9  

You should use the NSUserDefaults class for storing settings. It's all documented.

您应该使用NSUserDefaults类来存储设置。这些都记录在案。