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

NSDictionary Object Challenge Part 2

Challenge: Create another NSDictionary object called book2 with the following keys and values: 'Title' - 'Brave New World', 'Author' - 'Aldous Huxley'

code:

NSDictionary *book1 = [NSDictionary dictionaryWithObjectsAndKeys:@"Art of War",@"Title",@"Sun Tzu",@"Author",nil];

NSDictionary *book2 = [NSDictionary dictionaryWithOjbectsAndKeys:@"Brave New World",@"Title",@"Aldous Huxley",@"Author",nil];

Second line is causing the error can't seem to find out why it's not passing. The syntax is the same as the first which passed. Any help is appreciated. Thanks.

2 Answers

you misspelled objects

[NSDictionary dictionaryWithOjbectsAndKeys

Thanks~ I figured it out a few minutes ago.