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.

iOS

Eric Wolfe
Eric Wolfe
10,186 Points

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
STAFF
Amit Bijlani
Treehouse Guest Teacher

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

[bookTitle uppercaseString];
Eric Wolfe
Eric Wolfe
10,186 Points

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.

Eric Wolfe
Eric Wolfe
10,186 Points

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

Henry Moran
Henry Moran
10,516 Points

Could you also do:

bookTitle.uppercaseString;

Or is that incorrect syntax?