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

code challenge 1.1 create a string i have create a string

hi i have created the string and each time i press enter it say syntax error. this is my string

NSString *treeHouse = @ "tree house";

its not accepting it in the challenge screen

i believe it's because you have a space between the"@" and "treehouse".

ive tried these combos

NSString *treeHouse = @ "tree house"; NSString *treeHouse =@"tree house"; NSString *treeHouse = @"tree house";

i keep getting this message Bummer! Make sure you're creating the right kind of string and check your syntax!

3 Answers

its says create a string named treehouse with a value of "Treehouse"

try this :

NSString *treeHouse = @"Treehouse";

Hi Mohammed,

You're experiencing problems because you're using camel-casing where it isn't required. Remember, when creating strings, case does matter. treeHouse won't be the same as Treehouse, and so on.

The correct code is:

NSString *treehouse = @"Treehouse";

Hope this helps!

thanks guys you are a star

no problem man, just a week or two ago i was in your spot.