Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.


Troy Fine
Troy Fine
7,592 Points

Explanation or Course needed for Data Hierarchy

I have been stumped lately on the finer details of how one can program a data Hierarchy that is referred to on the Apple Developer website in the Table View Programming Guide. Linked below:


More specifically the one referred to in figure 3-1.

I understand that there are different ways or approaches to displaying model data but I'm more stumped on how to program the functionality of such a data hierarchy in the first place.

I have been referring to the iOS blog reader app which has some good info regarding split views and the master/detail relationship, I have also referred at the segue section of iOS foundation course but to do what is shown in this Apple guide escapes me.

I'm not sure if this qualifies for new course material or if someone can show the code and explain how this is done. Some where on the Apple Developer website it hinted at three different ways of programmatically making a data hierarchy. The only things I can think of are with the use of subviews for the final detail view. But in my head I'm imagining a whole lot of segues as each tableview cell could lead to a whole new table view and that to a final detail or sub view.

I would like to see programmatically the different ways this can be done and it's relationship to whatever is on the storyboard.

Much appreciation for any input or assistance on this topic.

1 Answer


Have you tried posting your question on Stackoverflow.com? Stackoverflow is a great resource for questions like this one. I am not sure that teamtreehouse is the best choice for this question since this forum tends to be a little more content specific (i.e. questions about specific videos/challenges).