Quote:
Originally Posted by RLScott
No, it doesn't. What do you mean "write variable2 out to a label"? Integer or float variables cannot be just "written out to a label". They can be converted to a string using the NSString initWithFormat method. Then the resulting string can be assigned to the text property of a label. That is the closest I can come to "writing out variable2 to a label".
Robert Scott
Ypsilanti, Michigan
|
By "writing out to a label" I meant the whole process of writing it out to a label such as creating a new NSString and using "initWithFormat" to put it in and then declaring the label as the new NSString. As you can probably tell I'm new to Objective-C, although I do know some other languages, but once I've sorted this then I'm pretty much set.