开发者

update UITableView when section is removed from NSFetchedResultsController

开发者 https://www.devze.com 2023-03-15 01:35 出处:网络
UITableView question : I use Core Data and this delegate method to update my table view (of course with couple willChange and didChange)

UITableView question :

I use Core Data and this delegate method to update my table view (of course with couple willChange and didChange)

- (void)controller:(NSFetchedResultsController *)controller didChangeSect开发者_开发知识库ion:(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 ?!


It's difficult to tell without seeing your code.However, silly as it seems, you may have forgotten to set the NSFetchedResultsController's delegate. Check this in your code.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号