iphone - How to get a UITableView's visible sections? -


uitableview provides methods indexpathsforvisiblerows , visiblecells, how can visible sections?

or easy way take advantage of valueforkeypath , nsset class:

nsset *visiblesections = [nsset setwitharray:[[self.tableview indexpathsforvisiblerows] valueforkey:@"section"]]; 

basically array of section values in visible rows , populate set remove duplicates.


Comments

Popular posts from this blog

SAP Web Service from .NET via WCF -

Optimized Line drawing in QT -

datetime - str to time in python -