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 trialLeon Gaban
922 PointsStuck on 1st code challenge :(
I'm trying to pass the first code challenge but it is not taking my code, I was forced to cheat on stackoverflow and still won't take any of the following lines I tried...
NSString* welcomeMessage= @"Welcome to Life Leveler";
NSString* welcome= @"Hello";
NSString* welcome = @ "Hello";
NSString *welcome= @"Hello";
NSString* myString= @"testing"; <- direct copy from stackoverflow
2 Answers
Amit Bijlani
Treehouse Guest TeacherLeon Gaban The instructions on the very first code challenge say: "Create a string named 'treehouse' with a value of 'Treehouse'."
Leon Gaban
922 PointsOh thanks!
/faceplam... I just remember hearing from the video go make a string, I just missed the instructional copy.
Liking the course otherwise :)
Rob Odell
Courses Plus Student 1,225 PointsHey Leon,
I had trouble with this at first too:
Directions say do this: create a new string called aString that contains the text "Objective-C is fun".
The code challenge is setup to already encompass most of the other variables so all you need to do is create the string to pass the challenge.
NSString *aString = @"Objective-C is fun";
Should do the trick.
Leon Gaban
922 PointsLeon Gaban
922 PointsOk I think this code challenge is broken, I just encountered the same test in the "Classes and Objects" stage
The above code works in the test app view, however NSString *myString = @"My name is Leon";
Does not work in the code challenge.