Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

% sign in string objective c

i am wondering how i do a % sign within a NSString, i have tried \% and \\%

like image 564
user393273 Avatar asked Oct 11 '10 08:10

user393273


People also ask

What is symbol in Objective C?

The @ symbol is used in a few places in Objective-C, and basically it's a way to signal that whatever it's attached to is special to Objective-C and not part of regular C. This is important when the computer compiles Objective-C code.

What is @before a string in Objective C?

@"Chocolate" is just a shortcut to create an NSString instance. You could also use: [[NSString alloc] initWithUTF8String:"Chocolate"]; If you didn't use the @ you would create a C string ( char array). Follow this answer to receive notifications.


1 Answers

Try %%.

Short question, short answer. :)

like image 117
Prof. Falken Avatar answered Sep 23 '22 11:09

Prof. Falken