Hello!
I have a UILabel I created on one of my views in my application. I have it set to a static text in IB, but I'm going to change that text programmatically.
Here's how I was trying to do it.
fahrenheitLabel.text = (@"Temperature: %@", text);
//fahrenheitLabel is my UILabel
//"text" is a NSString
I expected the output to be Temperature: 84
, for example.
No matter what order I try it, however, I always just get 84
.
When I do NSLog(@"Temperature: %@", text);
I get the desired result in the Console.
Is there any reason why my UILabel is not displaying the same result as the NSLog call?
Thank you for your help!