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
Frankie Brown
509 PointsCode Challenge 3/3 - Modifying the Master Detail Template
I am struggling with the final part of this code challenge. I have completed the first two parts but the last part is completely missing me. I have tried so many different ways to do it but with no success so far.... Here is my problem.
I have done this part.
NSArray *booksArray = [[NSArray alloc]initWithObjects:@"Hamlet", @"King Lear", @"Othello", @"Macbeth", nil]; NSString *bookTitle = [booksArray objectAtIndex:2];
Now it wants me to make the "bookTitle" variable uppercase by calling a method on it.
How should this look?
Thanks.
5 Answers
Natacha S
11,561 PointsThanks !
Amit Bijlani
Treehouse Guest Teacher@Frankie This is very similar to the Code Challenge in the first project: http://teamtreehouse.com/library/ios-development/build-an-iphone-crystal-ball-app/learning-the-language
Natacha S
11,561 Pointsunfortunately this page doesn't exist anymore ! :-( Struggling as well...
Natacha S
11,561 Pointsunfortunately this page doesn't exist anymore ! :-( Struggling as well...
Amit Bijlani
Treehouse Guest TeacherSorry that you are struggling. Please post your code so I can help you out.
Natacha S
11,561 PointsI went through the course step by step and the method was never discussed so i have no idea what API to use...Thanks ! Here's my code so far : NSArray *booksArray = [NSArray arrayWithObjects:@"Hamlet", @"King Lear", @"Othello", @"Macbeth",nil]; NSString *bookTitle = [booksArray objectAtIndex:2];
So I tried this : NSString *bookTitle = [[booksArray objectAtIndex:2]upperCase];
Amit Bijlani
Treehouse Guest TeacherThose two lines pass the first two tasks. Is it the last task that you are having a problem with? There's a method part of the NSString class to make a string uppercase.
The answer to the last task is: [bookTitle uppercaseString];.