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

ios - making a string in first code challenge

This is a really silly question, I'm asking but how do you get passed the first code challenge. They want me to create a string. I've tried a quite a few different things and none of them work. I typed out what they said in the video and it still didn't work. I typed this out: NSString *myString = @"iphone island"; and it says it's incorrect. Am I messing up on the spaces or something completely different. I've tried so many different ways with putting spaces. I feel really dumb asking this but how do you get passed this?

2 Answers

Amit Bijlani
STAFF
Amit Bijlani
Treehouse Guest Teacher

The Code Challenge says "Create a string named 'treehouse' with a value of 'Treehouse'." So your code is right except the name of the string object and value of the string are different.

Hi Amit.

http://teamtreehouse.com/library/create-a-string-2

Create a NSString variable named 'myString' with the value 'Fun with Objective-C'.

my code:

NSString *myString = @"Fun with Objectiv-C";

Not sure where I'm going wrong?

Amit Bijlani
Amit Bijlani
Treehouse Guest Teacher

Your spelling of "Objective" is wrong

wow. lesson learned, glad it happened here and not later on... Many thanks!!!

Yikes! I can't believe I missed that! Thank you Amit!