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

iOS Objective-C Basics (Retired) Foundation Framework NSDictionary

Jeffrey Munn
Jeffrey Munn
9,520 Points

Continually being told my syntax is incorrect on challenge task 1 or 3 for iOS development NSDictionary lesson.

Trying

NSDictionary *album = @{@"title":@"Abbey Road", @"artist":@"The Beatles"};

Why do I keep getting the message that my syntax is incorrect?

Ken Alger
Ken Alger
Treehouse Teacher

Jeffrey;

I cut and pasted your code into the challenge and it passed just fine. Try refreshing your browser and giving it another shot. If that doesn't work you may need to clear the browser cache & history and have another go.

Ken

1 Answer

Jeffrey Munn
Jeffrey Munn
9,520 Points

Thanks Ken. Ultimately it worked after I re-typed it. Either it was a browser issue or I missed something super small.