mirror of
https://github.com/leanote/leanote-ios.git
synced 2025-10-17 08:38:23 +00:00
Handle all enumeration values in switch
This commit is contained in:
@@ -724,7 +724,10 @@
|
|||||||
case NSFetchedResultsChangeDelete:
|
case NSFetchedResultsChangeDelete:
|
||||||
[tableView deleteSections:[NSIndexSet indexSetWithIndex:sectionIndex]
|
[tableView deleteSections:[NSIndexSet indexSetWithIndex:sectionIndex]
|
||||||
withRowAnimation:UITableViewRowAnimationFade];
|
withRowAnimation:UITableViewRowAnimationFade];
|
||||||
break;
|
break;
|
||||||
|
case NSFetchedResultsChangeUpdate:
|
||||||
|
case NSFetchedResultsChangeMove:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@@ -693,6 +693,9 @@
|
|||||||
[tableView deleteSections:[NSIndexSet indexSetWithIndex:sectionIndex]
|
[tableView deleteSections:[NSIndexSet indexSetWithIndex:sectionIndex]
|
||||||
withRowAnimation:UITableViewRowAnimationFade];
|
withRowAnimation:UITableViewRowAnimationFade];
|
||||||
break;
|
break;
|
||||||
|
case NSFetchedResultsChangeMove:
|
||||||
|
case NSFetchedResultsChangeUpdate:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@@ -573,6 +573,9 @@
|
|||||||
[tableView deleteSections:[NSIndexSet indexSetWithIndex:sectionIndex]
|
[tableView deleteSections:[NSIndexSet indexSetWithIndex:sectionIndex]
|
||||||
withRowAnimation:UITableViewRowAnimationFade];
|
withRowAnimation:UITableViewRowAnimationFade];
|
||||||
break;
|
break;
|
||||||
|
case NSFetchedResultsChangeMove:
|
||||||
|
case NSFetchedResultsChangeUpdate:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user