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


Code Challenge - Modifying the Master-Detail Template

Is there a chatroom/IRC setup anywhere? I have a question but feel it isn't really forum worthy.

I'll ask it anyway though. Here is the code challenge: "Now make the 'bookTitle' upper case."

and here is my answer:

NSArray *booksArray = [NSArray arrayWithObjects:@"Hamlet", @"King Lear", @"Othello", @"Macbeth", nil];
NSString *bookTitle = [self.booksArray[2] uppercaseString];

What is wrong with that? It won't pass the code challenge.

PS, where is the search feature for the forum?

5 Answers

Amit Bijlani
Amit Bijlani
Treehouse Guest Teacher

@eric Your last line should simply send a message to bookTitle:

[bookTitle uppercaseString];

I also tried the following with no luck

NSArray *booksArray = [NSArray arrayWithObjects:@"Hamlet", @"King Lear", @"Othello", @"Macbeth", nil];
NSString *bookTitle = [booksArray objectAtIndex: 2];
bookTitle = [bookTitle uppercaseString];

Is there a list of expected answers somewhere?

James Barnett
James Barnett
39,199 Points

We're a pretty friendly bunch around here, all questions are forum worthy. If you wondered about it chances are someone else will too.

And the forum search feature is as yet to be implemented.

@amit Thanks! I'm still getting used to the idiosyncrasies of objective-c :)

Henry Moran
Henry Moran
10,516 Points

Could you also do:


Or is that incorrect syntax?