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 Enhance a Weather App with Table Views Introduction to Table Views Vanilla Table Views

Brian Patterson
Brian Patterson
19,588 Points

Quiz 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

Brian Patterson
Brian Patterson
19,588 Points

Sorry that does not help me. I do understand TableViews but this question is very confusing and the video does not help.

Gabe Nadel
seal-mask
.a{fill-rule:evenodd;}techdegree
Gabe Nadel
Treehouse Guest Teacher

Well, 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
Corey Dutson
Courses Plus Student 3,193 Points

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

Brian Patterson
Brian Patterson
19,588 Points

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

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

It 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
Raed Alahmari
12,966 Points

the answer is " index path "

Lars Wettmann
Lars Wettmann
15,376 Points

I tried NSIndexPath and indexpath and both wasn't accepted as answer.. oopsi.

I knew it was an index, but why would I know the answer was those exact two words?

Gabe Nadel
seal-mask
.a{fill-rule:evenodd;}techdegree
Gabe Nadel
Treehouse Guest Teacher

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