OC

Knowledge OS
主帖 1 条回复

在Core Data查询数据时,出现奇怪现象

xieweizhi007 xieweizhi007 · 2013年11月26日 · 阅读 2 · 无人欣赏。

查询的时候,如果不执行[NSFetchRequest setReturnsObjectsAsFaults:NO] 方法的话,返回的数据都是nil的。为什么会这样呢?

回复

1 条
#1
xieweizhi007
2013年11月26日

上网查了下,有些眉目了 :) Faulting is a mechanism Core Data employs to reduce your application’s memory usage.

and

A fault is a placeholder object that represents a managed object that has not yet been fully realized, or a collection object that represents a relationship:

登录 或者 注册