Here I have an
int x=3; NSLog(@"%i", x);
How to have it displayed like "01"? and if x=12 to have it displayed like "12"? Thanks
How about "%02d" ?
"%02d"
or "%02i" ?
"%02i"
(See man printf for formatting information or cocoadev NSLOG)