草庐IT

forChangeType

全部标签

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

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

ios - Objective-C 方法' Controller :didChangeObject:atIndexPath:forChangeType:newIndexPath

Objective-Cmethod'controller:didChangeObject:atIndexPath:forChangeType:newIndexPath:'providedbymethod'controller(:didChangeObject:atIndexPath:forChangeType:newIndexPath:)'conflictswithoptionalrequirementmethod'controller(:didChangeObject:atIndexPath:forChangeType:newIndexPath:)'inprotocol'NSFetc