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 Object-Oriented Objective-C Getting Oriented - Object-Oriented, That Is Review NSDictionaries and NSMutableDictionaries

code challenge

It wont accept awnser

variable_assignment.mm
   NSDictionary  *artDict    =   @{

     @"Artist": @Dali,
     @"Title": @The Ship,
     @"Medium": @OilPaint,


};

1 Answer

Kyler Smith
Kyler Smith
10,110 Points

To pass that part of the challenge you are just making a few typos! The Values for the Keys need to be surrounded by quotes and the Value "Oilpaint" needs to have a space to make "Oil Paint". Good luck!

Here is what I have now, it still isnt working.

NSDictionary *artDict = @{

 @"artist": @"dali",
 @"title": @"the Ship",
 @"medium": @"oil Paint",

};