How can one pad a string to left in objective c. E.g if I have an integer value of 6 I want it to be displayed as 06.
I use stringByPaddingToLength:
but it pads it to the right like 60.
Your help is much appreciated.
See Question&Answers more detail:os