UITableView provides the methods indexPathsForVisibleRows and visibleCells, but how can I get the visible sections?
UITableView
indexPathsForVisibleRows
visibleCells
for (NSUInteger section = 0; section < self.tableView.numberOfSections; ++section) { UIView *headerView = [self.tableView headerViewForSection:section]; if (headerView.window) { NSLog(@"its visible"); } }