Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS

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:

https://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/TableView_iPhone/TableViewAndDataModel/TableViewAndDataModel.html#//apple_ref/doc/uid/TP40007451-CH5-SW4

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

Troy,

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).