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
Post a Comment