I would a grouped tableview such that:
when the only row of the first section is associated to a state, say A, I can see only this first section with, possibly, some text under it (in a footer for example);
when this state changes, I would see other sections under the first;
How could I achieve this? Some code/link to obtain something similar?
Thanks,
Fran
No problem, just add some if else logic in all your tableView Datasource and delegate methods.
For example like this:
and if you want to add or remove the second section you could use a simply [tableView reloadData]; or this smoother variant:
be careful, you have to change the data in your datasource first. And this code will add 2 sections. But you can adopt it to your needs easily.