【问题标题】:How to store the settings of the app using the IASKSettingsStore如何使用 IASKSettingsStore 存储应用程序的设置
【发布时间】:2012-02-01 06:10:46
【问题描述】:

我正在使用 InAppSettingsKit,但我不知道如何使用 IASKSettingsStore 类保存应用程序的设置。当我关闭我的应用程序并重新打开它时,设置被设置为默认选项。

【问题讨论】:

  • 是的,我会使用 NSUserDefaults 或者你可以尝试单例+核心数据

标签: ios objective-c iphone ipad inappsettingskit


【解决方案1】:

通常您不需要IASKSettingsStore。然后,IASK 使用“设置”应用中的标准 NSUserDefaults 机制。

IASKSettingsStore 仅在您希望使用替代存储机制(例如将设置存储在文件、Core Data、iCloud 等)时才需要。

【讨论】:

    猜你喜欢
    • 2011-07-05
    • 1970-01-01
    • 1970-01-01
    • 2011-05-11
    • 1970-01-01
    • 2021-07-26
    • 2016-09-13
    • 2011-02-26
    • 1970-01-01
    相关资源
    最近更新 更多