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)
Kelvin Knighton
6,168 Pointscreate a String
i don't know if I'm just looking at it all wrong, I'm super new to objective c, and maybe I'm putting the syntax like the guy in the vid instructs me to do, but its not working for me, here is what i have...>>
NSString* myString= @"Crystal Ball"; thats what i had first, copying the guy in the vid, then i read the top of the page and it say>>> Create a NSString variable named 'myString' with the value 'Fun with Objective-C'. NOW HERE IS MY ANSWER TO THAT NSString* myString= @'Fun with Objective-C'. ; >> and i tried it without the ; and it still didm't work.. help please
3 Answers
![Holger Liesegang](https://secure.gravatar.com/avatar/114ef70406fce64fa70f90ad3e04ed09?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Holger Liesegang
50,595 PointsHi Kelvin, you might want to try @"Stringtext" instead of @'Stringtext'
![Tom Hill](https://secure.gravatar.com/avatar/f464013ccfbb40cbae6ba4c9a6570b1b?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Tom Hill
14,232 PointsHi Kelvin, make sure you have NSString before you declare the name of the string, have a space BEFORE the * then the name of the string after the * without a space like: NSString *myString
Then a space, an equal sign (=), another space then the name of your string surrounded by DOUBLE QUOTES (") and prefixed with an @ symbol, then end it with a semicolon (;) so it looks like:
NSString *myString = @"Fun with Objective-C";
(remember to include the semi-colon)
Hope this helped - Tom
Kelvin Knighton
6,168 Pointsthank you Holger and Tom, i will go and try it.