tags:

views:

32

answers:

2

I want to display "x2" (second power of "x") in a UILabel. How can I do it?

Thanks in advance!

+4  A: 

There’s a Unicode character 0x00b2 (², superscript two) that should do the trick.

zoul
+1  A: 

Actually, I've found the answer myself and it's really simple. In IB there's the "Special characters" menu, which contains lots of characters including second power of "x". Then you just click on the label, press cmd+1 and drag'n'drop the character into the "Text" field of the Inspector window.

Knodel