My app in xcode has a tableview with some product data. One of my products have a superscript e in its name. How can I use superscript characters in a string like: texte
I can get it to work with numbers: text\u2070 -> text0 or text\u2071 -> text1. But how to do this with other characters?
thx!
Add CoreText framework, import CoreText.h, and use UIlabel.attributedText - it has full support for NSAttributedString. Asked and answered repeatedly on SO already.
tl;dr: NSString does not support concept of super/sub script. That's more or less a UI formatting concern.
One possible solution is to dynically add UILabels in code instead of interface builder. You can add a second UILabel with a smaller font size.