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? -

aspxgridview - Devexpress grid - header filter does not work if column is initially hidden -

c# - How to execute a particular part of code asynchronously in a class -