【发布时间】:2016-08-01 04:47:05
【问题描述】:
我正在编写一个实现来处理 NSFetchResultsController DidChangeSection 但我收到了这个奇怪的警告
这是我的方法
- (void)controller:(NSFetchedResultsController *)controller didChangeSection:(id <NSFetchedResultsSectionInfo>)sectionInfo
atIndex:(NSUInteger)sectionIndex forChangeType:(NSFetchedResultsChangeType)type
{
switch (type) {
case NSFetchedResultsChangeInsert:
[stampsTableView insertSections:[NSIndexSet indexSetWithIndex:sectionIndex] withRowAnimation:UITableViewRowAnimationFade];
break;
case NSFetchedResultsChangeDelete:
[stampsTableView deleteSections:[NSIndexSet indexSetWithIndex:sectionIndex] withRowAnimation:UITableViewRowAnimationFade];
break;
}
}
警告如下图。我该如何解决这个警告?
【问题讨论】:
标签: ios core-data nsfetchrequest