Trouble with ID in NSString
Posted
by
useboot
on Stack Overflow
See other posts from Stack Overflow
or by useboot
Published on 2013-10-21T15:49:28Z
Indexed on
2013/10/21
15:53 UTC
Read the original article
Hit count: 112
ios
|objective-c
I am trying to create something interesting in my application. So, I created an UILabel and I want to output new value.
So, my code.
NSString *test = @"13";
self.UserAge.text = @"Your age is %@", test;
But it doesn't work.
In Console-Command Mode I can do it with NSLog(); My result is "Your age is %@". But I need to output "Your age is 13". What do I should do with name? Sorry, if my question is easy for you. I am beginner. :)
Thank you everyone who will answer on my question.
© Stack Overflow or respective owner