阅读背景:

循环数组并从核心数据中获取数据

来源:互联网 

I've got an array of 200 numbers (item ids) and I want to get some data from core data for each item using its item id. I am assuming the only way to do so is to query core data within a loop performing the fetchRequest in each iteration and adding the results to a mutable array. This seems like a memory hog and looping over 200 items may not be the best way of getting that data I need.I've got an array of 200 numbers (item ids) and




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: