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