I need to create a table view (iPad application) that can show and collapse rows at different levels:
- Client 1 - Category 1 - Info 1 - Info 2 - Category 2 - Info 1 - Info 2 - Category 3 - Info 1 - Info 2 - Client 2 - Category 1 - Info 1 - Info 2
etc.
If a user clicks on a client line, all lines associated with the client (categories and information under this client) should expand / collapse. On the other hand, if they use a certain category only for this category, it should expand / contract.
So, I plan to have nested NSMutableDictionaries for storing data that I can access using dynamic keys (for example, dynamic client names), but I'm not sure if this approach will really work to solve the actual problem (make collapsible parts). Also, I'm not sure what to use only the lines and make them look like the heading sections or to use the actual sections, because as far as I know, I cannot make subsections to achieve three levels of nesting.
Any ideas? I saw examples of projects with extensible strings, but I'm still confused.
Help!
source share