I have a UILabel that has text which will come in from an int. It comes in in this way because it is inside of a for loop where it keeps gaining more and more values. Here's how I'm setting the dictionary's value:
What happens here is that the string will come out but it becomes a huge number, like an identifier.
And if I leave off the string with format I get a warning and it causes the iPhone simulator to crash.
How can I maintain the ACTUAL value of the int and pass it into an NSString to be placed into a dictionary?
Code:
[myPlate setValue:[NSString stringWithFormat:@"%d",aInt] forKey:@"aKey"];
What happens here is that the string will come out but it becomes a huge number, like an identifier.
And if I leave off the string with format I get a warning and it causes the iPhone simulator to crash.
How can I maintain the ACTUAL value of the int and pass it into an NSString to be placed into a dictionary?