[英]update UITableView when section is removed from NSFetchedResultsController
UITableView question : UITableView问题:
I use Core Data and this delegate method to update my table view (of course with couple willChange and didChange) 我使用Core Data和此委托方法来更新我的表视图(当然是夫妇willChange和didChange)
- (void)controller:(NSFetchedResultsController *)controller didChangeSection:(id <NSFetchedResultsSectionInfo>)sectionInfo
atIndex:(NSUInteger)sectionIndex
forChangeType:(NSFetchedResultsChangeType)type {
Why the sections under my table view are not updated if I don't ask reloadData in the end of this delegate method ?! 如果我在此委托方法的末尾不询问reloadData,为什么我的表视图下的部分没有更新?
It's difficult to tell without seeing your code.However, silly as it seems, you may have forgotten to set the NSFetchedResultsController's delegate. 不看代码很难说,但是看起来很愚蠢,您可能忘记设置NSFetchedResultsController的委托了。 Check this in your code.
在您的代码中检查一下。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.