草庐IT

guestCardFetchedResultsController

全部标签

ios - NSFetchedResultsController 正在加载所有行,即使我已经设置了批处理

好的。这是与此处完全相同的问题:WhyisNSFetchedResultsControllerloadingallrowswhensettingafetchbatchsize?但他的解决方案并不能解决我的问题。我的屏幕上有几千条记录,加载它们的速度很慢。我将批处理大小设置为30(大约是屏幕上单元格的三倍),但由于某种原因它仍然循环加载所有批处理。这是代码-(NSFetchedResultsController*)guestCardFetchedResultsController{if(guestCardFetchedResultsController!=nil){returnguest