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 trialdarknitedre
1,911 Pointshi I'm having some trouble NSDictionary 3 of 3
NSDictionary *album = [[ NSDictionary alloc] initWithObjectsAndKeys:@ 2 "Abbey Road",@"title",@"The Beatles",@"artist",nil]; 3
4 NSMutableDictionary *albumMutable = [NSMutableDictionary dictionaryWithDictionary: album 5 ]; 6 [albumMutable setObject:@1957 forKey:@"year"]; 7
8 for (NSString *string in [albumMutable allkey])
1 Answer
Sam Roth
1,457 PointsHi Andre,
The problem you are having is due to the year you are passing to the setObject function. You've passed the year as a number literal (@number), when the problem asks for it as a string (@"number"). Additionally, the year they ask for in the prompt is 1969. Correcting these two errors should allow your code to validate.