Group Group Group Group Group Group Group Group Group

Making the headers of a static table view controller tappable

Hi

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?

Thanks!

@mikeneirinck Do you still have issues with this?

This topic was automatically closed after 166 days. New replies are no longer allowed.