Passing managedObjectContext along to view/controller hierarchy

前端 未结 2 1472
隐瞒了意图╮
隐瞒了意图╮ 2021-01-22 02:37

Managed object context in most cases created in application delegate. What are the ways of passing it along to view/controller hierarchy, so every navigation/tab controller in t

2条回答
  •  粉色の甜心
    2021-01-22 03:35

    You can also create a main context object in your main Nib. And link the controllers with this object. Or create a singleton if you only use one MOC.

提交回复
热议问题