Welcome to the Treehouse Community
Looking to learn something new?
Larry Mc Goldrick4,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.
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 ;)