Reputation: 12949
I might be asking a question that's already been answered, but I cannot find it here or somewhere else. So if you could point out to a thread that explains how to work with UITableVIew and nested data.
In the Core Data, I have Groups and Subscriptions. All Subscriptions belong to a group. So, first I'm displaying Groups in my TableView and when I click on a Group, I want all it its Subscription to be displayed. Then I want to be able to go back to the Group list.
It is something really common and easy, but I can't find the way to do it.
[EDIT 1] : it is for iOS
Upvotes: 2
Views: 685
Reputation: 726809
You set up a UINavigationController that displays the data from the parent level of the hierarchy, putting a disclosure indicator (>)
on cells corresponding to groups with one or more subscription. When the user taps the disclosure indicator, you push another table-based view controller on the stack, and give it the subscriptions of the current group to display.
Upvotes: 2