Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在我的应用程序中插入了几个符号,其中一些符号正确显示,但其中一些只出现了一个带脸的正方形,我是否需要添加任何框架才能正确显示所有这些符号?
在 swift 中,如果你想显示任何 Unicode 字符,请使用以下格式:
var str="\u{ /*Unicode value*/ }"
在你的情况下:
cell.textLabel?.text="A\u{FB06}" //A Code for 'st' is FB06
编辑:截图-
编辑 2 UITableView 不支持扩展字符。请参阅下面的评论。