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 trialMichael Anthony
Courses Plus Student 411 PointsProblem with "create a string" code challenge in Introduction to Crystal Ball App
Hi Everyone -
I hope this hasn't been already identified and solved and I've been unable to see that. In any case, there seems to be an issue with the first code challenge int eh "Getting Started with iPhone" series of the Become a Mobile Developer learning adventure. The challenge is to create a simple string.
Here is what I entered: NSString *myString = @"Is this cool or what?"; The interface says it's incorrect. After trying various things such as making sure I didn't have a space between the asterisk and the string name or between the "@" and the opening double quotes, I finally Googled it and was given this example: NSString *string1 = @"This string is immutable"; The challenge interface rejects that as well. Really????
Can anyone tell me where I might be going wrong or if there really is a problem with the challenge itself?
Thanks in advance.
Michael
2 Answers
Kai Aldag
Courses Plus Student 13,560 Pointslol i had the same problem
Otto Wichmann
4,827 PointsHi Michael;
I had that issue as well. The problem is not that YOUR string is wrong. The string you made is NOT the string TREEHOUSE wants you to write. You have to read the direction at the top of the screen, they want a particular string not just any string.
I'll give you a hint:
Create a string named 'treehouse' with a value of 'Treehouse'.
It starts like this:
NSString *treehouse = (add the proper value) dont forget @ and "" and ;
Hope this helps ! ! !
Cheers,
Otto