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 trialBrian Patterson
19,588 PointsQuiz question
I have reviewed the video about a million times but I don't understand the question at the end of this section. A(n)_______ associated with the table view stores information to locate sections and rows within a table view.
I have looked at the transcript and I don't get the answer. This was a very confusing challenge.
6 Answers
Gabe Nadel
Treehouse Guest TeacherHi Brain, I think the answer you seek is actually in this video segment:
Sorry for the confusion!
Brian Patterson
19,588 PointsThank you for that. Maybe a an alternative way would be : "In a TableView a _________ stores information to locate sections and rows within a table view. Enjoying the course. Its tough but feel that I am getting somewhere.
greschouse
1,783 PointsOr perhaps "In an UITableViewController (...)" because that's normally (and in the course) where the NSIndexPath object is used. Right?
Anyway, found the question confusing, too.
Leonardo Santos
5,290 PointsIt can be really very confusing. I had tried "index" and "NSIndexPath", but they were not accepted. There could be some hints. It's complicated to find the exact word(s) (in this case, it could be "index", "index path" or "NSIndexPath").
I am yet trying "In a table view, rows are defined as part of a ..." without success.
Raed Alahmari
12,966 Pointsthe answer is " index path "
Lars Wettmann
15,376 PointsI tried NSIndexPath and indexpath and both wasn't accepted as answer.. oopsi.
Christopher Campbell
3,451 PointsI knew it was an index, but why would I know the answer was those exact two words?
Gabe Nadel
Treehouse Guest TeacherIf you check out the video I linked above, you'll see that we use the term indexPath extensively. I'd suggest watching that to help clear things up.
Brian Patterson
19,588 PointsBrian Patterson
19,588 PointsSorry that does not help me. I do understand TableViews but this question is very confusing and the video does not help.
Gabe Nadel
Treehouse Guest TeacherGabe Nadel
Treehouse Guest TeacherWell, I hate to give the answer away, but what you are looking for is the "index path". The index path has information about the row and section of each cell.
If you watch the video above, you'll find some discussion of that topic. But yes, I agree the question could be rephrased. Thanks for the feedback!
Corey Dutson
Courses Plus Student 3,193 PointsCorey Dutson
Courses Plus Student 3,193 PointsI agree the wording could be corrected. I put "NSIndexPath" as the answer, because that seemed correct to me based on the question. Turns out I thinking of the right thing, but not in the way they wanted it said.