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 trialTera Tarbet
1,212 PointsQuiz not liking my code...not sure why...see below...
NSMutableDictionary *albumMutable = [NSMutableDictionary dictionarywithDictionary:album];
3 Answers
Holger Liesegang
50,595 PointsHi Tera,
the complete solution for Challenge task 2 of 3 "Declare an NSMutableDictionary variable named 'albumMutable' that is initalized using the previously created dictionary named 'album'." should be:
NSDictionary *album = @{@"title":@"Abbey Road",@"artist":@"The Beatles"};
NSMutableDictionary *albumMutable = [NSMutableDictionary dictionaryWithDictionary:album];
Maybe you deleted the former task 1 of the challenge by mistake?
Tera Tarbet
1,212 PointsNo, I just copy pasted the second line to have reviewed in forum because I already passed the fist task...which matches the line you typed...thus, the quiz has an issue with the second task which is the second line. I am starting to think the quiz compiler has issues cuz I just tried again and I got a Treehouse pop up window that it was unable to execute.
Holger Liesegang
50,595 PointsI just tested the Challenge part1 with
NSDictionary *album = @{@"title":@"Abbey Road",@"artist":@"The Beatles"};
and part 2 with
NSDictionary *album = @{@"title":@"Abbey Road",@"artist":@"The Beatles"};
NSMutableDictionary *albumMutable = [NSMutableDictionary dictionaryWithDictionary:album];
and everything was ok.
Maybe you'd like to try again by refreshing your browser and C&P the above code?
Tera Tarbet
1,212 PointsYes, got through the second task. Now getting a syntax issues on the third. Just started a new discussion with my new issue...I am not finding the issue...