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


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.