[[somestring substringtoindex:0] is equaltostring:@”””]; ‘makes red’ the rest of the code. actually i can’t put quotation marks inside quotation marks. still, this is the character i want to reffer. how should I do it in the correct way?
thanks
[[somestring substringtoindex:0] is equaltostring:@]; ‘makes red’ the rest of the code. actually i can’t
Share
To escape a character, use the backslash.
And to check if a string exists, use
-rangeOfString:.or
-hasPrefix:and-hasSuffix: