NSString stringWithFormat
Is user
a UILabel? Make sure that your text isn't wrapping or being clipped. Try making the UILabel bigger.
You need to try:
NSLog(@"In %@ by %@", category, logonUser);
To check the problem! Let me know the results on debugger console XD
The code looks correct:
By any chance are u getting a carriage return or extra white space in the category variable? In case of a small label, it may not display the full string. Try swapping the two variables in the third line and see what the output is.
I am baffled that even the "by" is missing from the output. I have a feeling that the value of the category variable is masking the text.