Skip to content
This repository has been archived by the owner on Nov 29, 2022. It is now read-only.

Commit

Permalink
Fix header & footer interaction on UICollectionView
Browse files Browse the repository at this point in the history
  • Loading branch information
guilhermearaujo committed Apr 15, 2015
1 parent 71e2307 commit b9292ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/UIScrollView+EmptyDataSet.m
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ - (void)dzn_reloadEmptyDataSet
if (!view.superview) {

// Send the view to back, in case a header and/or footer is present
if ([self isKindOfClass:[UITableView class]] && self.subviews.count > 1) {
if (([self isKindOfClass:[UITableView class]] || [self isKindOfClass:[UICollectionView class]]) && self.subviews.count > 1) {
[self insertSubview:view atIndex:1];
}
else {
Expand Down

0 comments on commit b9292ac

Please sign in to comment.