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 Getting Oriented - Xcode and Learning to Code Review Landscape and Tools

Bernard Chan
Bernard Chan
36,471 Points

The answer is not "NSString *favoriteFood = @”bacon”;" ???

I made NSString *favoriteFood = @”cheese”; to NSString *favoriteFood = @”bacon”;

But it said wrong? I have no idea what's going on?

1 Answer

Martin Wildfeuer
PLUS
Martin Wildfeuer
Courses Plus Student 11,071 Points

Hm, that seems to be a bug, indeed. If you copy and paste the code of the assignment, just replacing cheese with bacon, it works. This seems to be an issue with the quotes not being submitted/parsed correctly.

// 1. Does not pass with "
NSString *favoriteFood = @"bacon";

// 2. Does pass with ”
NSString *favoriteFood = @bacon;

However, version one is how quotes should actually look like.

May I forward this to you, Gabe Nadel ?

Just a heads up if it is helpful, I did not face this problem