Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在我的 ios 应用程序中使用 Restkit 0.20。对于每个请求,服务器都会使用包含数百个对象的 json 数组进行响应,这需要大量时间来映射/加载。是否默认支持延迟加载 Restkit 中的对象?
您可能可以通过使用 CoreData 完成您想做的事情。
RestKit 允许您将 CoreData 实体映射到从 REST 调用返回的对象。这些对象将本地存储在您指定的 CoreData 存储中。
然后,如果您不想进行 Web 服务调用,您可以做的只是从 CoreData 存储中提取对象。它不会自动为您执行此操作,但执行起来并不难。