我需要遍历fetchedResultsController但有一些问题。这是代码;for循环fetchedResultsController
for (NSFetchedResultsController *singleResult in _fetchedResultsController) {
//For logic
}
警告是;
Collection expression type 'NSFetchedResultsController *' may not respond to 'countByEnumeratingWithState:objects:count:'
这样做的正确方法是什么?
你确定你需要一个循环吗?你想达到什么目的? – Mundi