我的 UILabel 中需要有 19 世纪。但它应该显示为 19 世纪,其中 th 符号是上标。我正在使用 plist 输入标签。如何确保它在 UI 中正确显示?
在这方面需要一些指导。
附图片:
NSAttributedString has a property for that on osx, so perhaps it will be available on ios7. for now you could either store html in your plist and display that, or store 2 strings '19' and 'th' and manually add two uilabels into the top level one and manually layout them to create the superscript effect.