Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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.