I am trying to get a string using a CGFloat, something like this..
helpMessage = [NSString stringWithFormat:@"The unsigned integer value is %i", (unsigned int)myCGFloat];
This does not want to work. Given a CGFloat value of -2 I am getting 0 for in the string.
If I use...
helpMessage = [NSString stringWithFormat:@"The unsigned integer value is %i", (int)myCGFloat];
I get -2. That's getting closer. So I thought I could use @u as the format specifier but I get 4294967294.
What am I doing wrong.
Thanks in advance for any help. This should be an easy one.
John