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

android - Spacing between the stars of a rating bar? -

c++ - How to modify context menu of internet explorer using IDocHostUIHandler::ShowContextMenu? -

c# - Asterisk click to call -