【问题标题】:Magical Record with AFIncrementalStoreAFIncrementalStore 的神奇记录
【发布时间】:2013-05-20 12:30:25
【问题描述】:

我一直想知道如果我将 AFIncrementalStore 和 Magical Record 结合起来,生活会是什么样子。我只是不知道如何将增量存储设置为神奇记录的存储。有谁知道如何执行这样的操作?

【问题讨论】:

    标签: ios core-data magicalrecord afincrementalstore


    【解决方案1】:

    有或没有 MagicalRecord 没有什么不同。这是一个通用的 Core Data 场景。设置并注册 AFIncrementalStore 后,只需调用

    -[NSPersistentStoreCoordinator addPersistentStoreWithType:configuration:URL:options:error:]
    

    您阅读核心数据docs for this method 了解更多信息。

    MagicalRecord,当您使用内置堆栈帮助程序时,您可以使用 [NSPersistentStoreCoordinator MR_defaultCoordinator] 获取您想要附加存储的协调器实例。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2012-06-14
      • 2014-02-24
      • 2014-08-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多