ios - How to find TableView section header Index Path? -


i want kind of action according tableview section header index path. there method trace section header index path?

how func headerviewforsection ?

override func tableview(tableview: uitableview, headerviewforsection section: int) -> uitableviewheaderfooterview {      let headercell = tableview.dequeuereusablecellwithidentifier("headercell")              // stuf, e.g.     switch (section) {     case 0:         headercell.backgroundcolor = uicolor.cyancolor()     default:         headercell.backgroundcolor = uicolor.redcolor()     }      return headercell } 

Comments

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -