开发者

update UITableView when section is removed from NSFetchedResultsController

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜