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

NSString

Whats wrong with this statement ? NSString *myString = @"Crystal Ball" ;

NSString *myString = @"Crystal Ball"; you have a space after @"Crystal Ball"

Thanks thats one of the mistakes, another mistake was it asked me to input "Fun with Objective-C" instead of the "Crystal Ball".

3 Answers

It appears you have a space character between your ending double quote and semicolon.

I would suggest you re-read the task instructions and confirm that your variable contains exactly what it is asking.

Mike you're right after reading it carefully I've found that it asked me to input "Fun with Objective-C" instead of the "Crystal Ball"

Thanks for your reply Mike, I deleted the space still shows this msg Your 'myString' variable has the wrong value in it. Check the task instructions again.

I have the exact same problem.