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![](https://ecs-static.teamtreehouse.com/assets/views/marketing/shared/community-banner-white-47072046c51352fe6a69f5e691ff5700b28bb11d45197d7bdf066d9ea3f72d0c.webp)
![Bradley White](https://secure.gravatar.com/avatar/db94d660c15e818e2fcec2c1870cd8e8?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Bradley White
21,285 Pointsfirst code challenge on building ios app
I try to create a new string exactly like the video's example and it keeps telling its wrong. What the heck is the deal?
9 Answers
![Ben Jakuben](https://secure.gravatar.com/avatar/ed792ef7584207802b7556057724fe13?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Ben Jakuben
Treehouse TeacherCan you paste your code in here? If you indent it with four spaces it will show up formatted as code, like this:
NSString ... <rest omitted!>
![Bradley White](https://secure.gravatar.com/avatar/db94d660c15e818e2fcec2c1870cd8e8?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Bradley White
21,285 PointsNSString *myString = @"iPhone island";
![Ben Jakuben](https://secure.gravatar.com/avatar/ed792ef7584207802b7556057724fe13?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Ben Jakuben
Treehouse TeacherAh...you need to follow the instructions explicitly. The instructions for that step specify what the variable name and value should be, and they have to match exactly to pass.
![Bradley White](https://secure.gravatar.com/avatar/db94d660c15e818e2fcec2c1870cd8e8?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Bradley White
21,285 PointsI tried using the name of the .mm thing above it and it still didn't work. What is the answer suppose to be so I can see my error?
![Ben Jakuben](https://secure.gravatar.com/avatar/ed792ef7584207802b7556057724fe13?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Ben Jakuben
Treehouse TeacherWe don't like posting the exact answers in here so that people don't come here in the future just looking for answers without the discussion, but hopefully this is explicit enough to get you there. The instructions from the page are:
Create a string named 'treehouse' with a value of 'Treehouse'.
Your line of code:
NSString *myString = @"iPhone island";
Your string is named 'myString' and your value is 'iPhone island'. So just swap out those with what's specified in the instructions and it will pass for you.
![Bradley White](https://secure.gravatar.com/avatar/db94d660c15e818e2fcec2c1870cd8e8?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Bradley White
21,285 PointsThank you!!!!!!!!! That clears it up!
![ANDRAI WHITTED](https://secure.gravatar.com/avatar/72c636953bc24fc1785721786129eea4?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
ANDRAI WHITTED
75 PointsI did the same thing, didn't notice the instructions right above!
![Chris Logan](https://uploads.teamtreehouse.com/production/profile-photos/104181/micro_P1000067_2.jpg)
Chris Logan
2,872 PointsI had the same trouble with it not accepting, I found that I was writing the first part wrong. I was trying to submit it with "NSSTRING" instead of the correct "NSString", also I wasn't placing a space between after *mystring and the "=" and then the "mycontent", after fixing that I got it to accept.
![Elliot Bale](https://secure.gravatar.com/avatar/a5ebcd11e886e72c1a04bd4938e0e5f0?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Elliot Bale
Courses Plus Student 83 Pointsi write all right as it is written in the video and its saying its wrong i dont know what to do
![Ben Jakuben](https://secure.gravatar.com/avatar/ed792ef7584207802b7556057724fe13?s=60&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Ben Jakuben
Treehouse TeacherHi Elliot, make sure you follow the instructions for the Code Challenge and don't just type what was in the video. The instructions for that step specify what the variable name and value should be, and they have to match exactly to pass.