I have a static view table view controller. This has sections and it rows. When I tap on the header of a section I want it to collapse. I thought of adding a tap gesture recognizer to it but I can not find a way to create an outlet to this section header?
On the web I found solutions in which they have dynamic cells but not with static cells. I also found solutions in which they mimic the header as the first cell.
Are these the only two ways or is there a way to add a tap gesture recognizer to a section header in a static table view controller?