Tuesday, 13 August 2013

UITableView with open & closed sections

UITableView with open & closed sections

I have a UITableView with several sections. I would like click on a
section to "close/open" its content, in order to show/hide the rows under
it. So that, I can keep some sections open (with its rows visible) and
others close, with the next section immediately below the previous section
header.
How can I implement it? Do I need to subclass the UITableView and add a
gesture recognizer and somehow add an animation to the rows? But I'm not
sure this is easy...
thanks

No comments:

Post a Comment