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


Exploring the Master Data Template

Challenge # 2:

Create a string variable called 'bookTitle' and assign it the third item from the 'booksArray'.

My code:

NSString *bookTitle = @"Othello";


Bummer! The method for finding an object in an array at a given index was not called.

Help! This is driving me nuts! Challenge is nowhere in the previous video :(

1 Answer

 Vladimir Cezar
 Vladimir Cezar
7,710 Points

Your code is syntactically correct but it is not the answer to the question since @"Othello" is nor the third item from the 'booksArray' it is just IDENTICAL to it.

I suggest you try this:

NSString *bookTitle = booksArray[2];
 Vladimir Cezar
 Vladimir Cezar
7,710 Points

If this helps you, please consider selecting the answer as 'Best answer'. This helps my scoring and encourages me to keep answer your questions as well as other people. Thanks.