diff --git a/Source/IGListKit/IGListAdapter.m b/Source/IGListKit/IGListAdapter.m index 328789f2..b12e9d2d 100644 --- a/Source/IGListKit/IGListAdapter.m +++ b/Source/IGListKit/IGListAdapter.m @@ -660,12 +660,7 @@ [[map sectionControllerForObject:object] didUpdateToObject:object]; } - NSInteger itemCount = 0; - for (IGListSectionController *sectionController in sectionControllers) { - itemCount += [sectionController numberOfItems]; - } - - [self _updateBackgroundViewShouldHide:itemCount > 0]; + [self _updateBackgroundViewShouldHide:![self _itemCountIsZero]]; } - (void)_updateBackgroundViewShouldHide:(BOOL)shouldHide {