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,842 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