Passing a string representing my format specifier into stringWithFormat and seeing issues
- by Jeff
If I call "[NSString stringWithFormat:@"Testing \n %@",variableString]"; I get what I would expect, which is Testing, followed by a new line, then the contents of variableString.
However, if i try
NSString *testString = @"Testing \n %@"; //forgive shorthand here
[NSString stringWithFormat,testString,variableString]
the output actually literally writes \n to the screen instead of a newline. any workaround to this? seems odd to me