mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-04-22 11:46:05 +08:00
Handle case where there is a single section containing a header and footer row
This commit is contained in:
@@ -450,8 +450,9 @@
|
||||
if ([self isHeaderSection:section]) {
|
||||
numberOfRows += (![self isEmpty] || self.showsHeaderRowsWhenEmpty) ? [self.headerItems count] : 0;
|
||||
numberOfRows += ([self isEmpty] && self.emptyItem) ? 1 : 0;
|
||||
}
|
||||
|
||||
} else if ([self isFooterSection:section]) {
|
||||
if ([self isFooterSection:section]) {
|
||||
numberOfRows += [self.footerItems count];
|
||||
}
|
||||
return numberOfRows;
|
||||
|
||||
Reference in New Issue
Block a user