Add check for willDeleteSections:

This commit is contained in:
Li Tan 2015-01-22 12:21:30 -08:00
parent 9a49b718f7
commit 8ae063dec8

View File

@ -294,7 +294,9 @@
- (void)dataController:(ASDataController *)dataController willDeleteSectionsAtIndexSet:(NSIndexSet *)indexSet withAnimationOption:(ASDataControllerAnimationOptions)animationOption {
ASDisplayNodePerformBlockOnMainThread(^{
if ([_delegate respondsToSelector:@selector(rangeController:willDeleteSectionsAtIndexSet:withAnimationOption:)]) {
[_delegate rangeController:self willDeleteSectionsAtIndexSet:indexSet withAnimationOption:animationOption];
}
});
}