草庐IT

NSFetchedResultsChangeMove

全部标签

ios - NSFetchedResultsController 并不总是调用 didChangeObject :atIndexPath:forChangeType:newIndexPath: for NSFetchedResultsChangeMove

我在请求中使用NSFetchedResultsController和sortDescriptors来填充包含大量结果的表。我注意到,当发生将行从表底部附近移动到顶部的更改时,根本不会调用didChangeObject:atIndexPath:forChangeType:newIndexPath:。奇怪的是,我可以通过遍历所有获取的对象并在调用performFetch后立即访问它们的任何属性来解决这个问题。关于问题可能是什么的任何提示,或者这只是一个模糊的Apple错误?这是我的代码:NSManagedObjectContext*context=[selfmanagedObjectCon

ios - 枚举值 'NSFetchedResultsChangeMove' 和 NSFetchedResultsChangeUpdate' 未在开关中处理

我收到这个警告:枚举值'NSFetchedResultsChangeMove'和NSFetchedResultsChangeUpdate'未在开关中处理有什么想法吗?-(void)controller:(NSFetchedResultsController*)controllerdidChangeSection:(id)sectionInfoatIndex:(NSUInteger)sectionIndexforChangeType:(NSFetchedResultsChangeType)type{switch(type){caseNSFetchedResultsChangeInsert