Look at this UILabel. It’s center-aligned:

Now look at this UILabel. Although it is technically center-aligned, it really doesn’t look that way:

The reason why it looks like this is because the center-alignment considers the degree symbol a third character, thus bumping the other two off to the left a bit. My question is: is there any way to ignore certain characters whilst center-aligning a label?
Interesting question. The only solution that comes to mind for me is to pad the
textstring with spaces on the front to cancel out the ignored characters on the back.That is, to center
@"60d"as if it were@"60", set thetextto@" 60d". This works well with a fixed width font, but otherwise is only a rough approximation.If you like this idea and want to get fancy with it, then you can use
NSStrings methodperhaps in conjunction with
– rangeOfCharacterFromSet:or some such method to determine how many spaces to pad with.