如何使用多个 RKObjectManager 加载对象
我正在使用 https:/ /github.com/RestKit/RestKit/wiki/Using-Multiple-Base-URLs-%28and-Multiple-Object-Managers%29 作为指南。
我知道可以创建多个对象管理器并将它们保留在应用程序委托中。我不明白的是,如果只有第一个对象管理器是共享单例,那么如何在稍后的不同视图控制器中使用所需的 baseURL 从特定对象管理器加载对象。
感谢您的帮助!
I was using https://github.com/RestKit/RestKit/wiki/Using-Multiple-Base-URLs-%28and-Multiple-Object-Managers%29 as a guide.
I know it's possible to create multiple Object Managers and retain them in the appdelegate. What I dont understand is how do I load objects from that specific object manager with the desired baseURL in a different view controller late on if only the first of the object managers is a shared singleton.
Thanks for the help!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
没关系,发现在加载对象时在路径中使用baseURL将有助于区分两个对象管理器。
Nevermind, found out that using the baseURL in the path when loading objects will help distinguish the two object managers.