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.


Larry Mc Goldrick
Larry Mc Goldrick
4,131 Points

Quiz - Modifying the Master-Detail Template

Hi, I am having problems passing the section of the code quiz to make the string uppercase, although my code works in Xcode I cannot pass this section. This is my code:

NSArray *booksArray = [NSArray arrayWithObjects:@"Hamlet",@"King Lear",@"Othello",@"Macbeth",nil];

NSString *bookTitle = [_booksArray objectAtIndex:2];

bookTitle = [bookTitle uppercaseString];

I am sure its something small but I cannot get past it, thanks for any help.


2 Answers

Hi Larry

First, make sure to type: NSString *bookTitle = [booksArray objectAtIndex:2];

instead of: NSString *bookTitle = [_booksArray objectAtIndex:2];

I thing the issue may be with the last line (although it does make sense how you write it). Just type: [bookTitle uppercaseString];

instead of: bookTitle = [bookTitle uppercaseString];

Hope that helps ;)

Larry Mc Goldrick
Larry Mc Goldrick
4,131 Points

Hi Pavel, That worked thank you.