如果我在UILabel
中有一段文字,需要在文字中间显示一个注册商标,应该如何实现呢?我真的不想使用 ImageView 。我有点想重写 drawRect
或 sth 但还没有弄清楚。
谢谢!
最佳答案
您可以在 NSString
中的任何位置使用 Unicode 字符序列 \u2122
并且它会被 UILabel
适本地呈现:
someLabel.text = @"This is some text about a Trademarked Name\u2122";
关于ios - 如何用上标呈现注册商标,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16149742/