Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

iphonedevelop18

macrumors member
Original poster
Feb 26, 2009
50
0
int number = 20;

NSString *labelText = [[NSString alloc] initWithFormat:mad:"%f", number];
label.text = labelText;
[labelText release];

how would I make the text output the integer, it worked with a slider to output the "slider.value" so now i cant get it to output the integer. I think is has something to do with the @"%f" because when you output a string, you use @"%@d".
 

dejo

Moderator emeritus
Sep 2, 2004
15,982
452
The Centennial State
I just assumed the OP was a bad typist and let that one go....:D
Based on this thread and others started by the OP, I'm afraid it's more than just bad typing. They don't seem to have a good grasp of even the basics of Objective-C. I feel they would be best served if they stepped back and did some reading and learning about the language and its usage.
 

iphonedevelop18

macrumors member
Original poster
Feb 26, 2009
50
0
Thank you for helping me, sorry for asking so many questions, If you could I would like a website that would help me more understand objective c as I have only programmed in a variation of c for robots and other languages.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.