3

UICollectionView当本地模型更新时,我正在使用可重新排序的单元格从我们的服务器获取数据。本地模型的属性之一是UICollectionView组件内部的位置索引。

我正在使用NSFetchedResultsController以下方法来跟踪对象更改:

- (void)controller:(NSFetchedResultsController *)controller didChangeObject:(id)anObject atIndexPath:(NSIndexPath *)indexPath forChangeType:(NSFetchedResultsChangeType)type newIndexPath:(NSIndexPath *)newIndexPath 

有什么方法可以知道是否只更改了 positionIndex 以忽略不必要的远程请求?还是应该使用 KVO 手动跟踪这些更改?

4

0 回答 0