Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

iOS

Problem 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

lol i had the same problem

Otto Wichmann
Otto Wichmann
4,827 Points

Hi 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