Another noob question from me.
I’m trying to create an application that counts, and I’d like to display the number value as something like “000001”. So when it counts up it’ll display as “000002”.
I’m using something like this right now, but it’s not working:
counter.text = [NSString stringWithFormat:@"%000f", count];
The counter.text is a UILabel.
Thanks for the answer.
If you’re storing the number as an integer, use the
%0xdformat (wherexis the number of digits) like so: