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

iOS Build a Simple iPhone App with Objective-C Getting Started With Xcode String Basics

lori pinkerton
lori pinkerton
140 Points

Having hard time with Code Challenge Here is my code: NSString *pubcrawl =@"Crawl"; Signed, Pissed

I've asked for assistance on this before, and have made the changes but no luck

string_assignment.m
//Enter your code below!
NSString *pubcrawl =@"Crawl";

Not sure why you are having trouble, but if this is for the String Basics Challenge it was asking you to create a NSString variable named bestSmartphone and assign the value "iPhone".

NSString *bestSmartphone = @"iPhone";

3 Answers

William Li
PLUS
William Li
Courses Plus Student 26,868 Points

HI, Iori, You have to do exactly what the challenge is asking to pass it

Create a variable named bestSmartphone of type NSString with the value "iPhone"

variable name has to be bestSmartphone, the String value has to be iPhone

NSString *bestSmartphone = @"iPhone";
lori pinkerton
lori pinkerton
140 Points

Thanks William. I figured it out. Much appreciated.

lori pinkerton
lori pinkerton
140 Points

I see got it. Thanks.

lori pinkerton
lori pinkerton
140 Points

I see. I get it. Thanks so much