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.
我有一个 NSString,然后设置一个 UILabel。这包含unicode,例如...
E = MC 锤\U00ac\U2264
和完整的,例如
\U2013\U00ee\U2013\U00e6\U2013\U2202\U2013\U220f\U2013\U03c0\U2013\U00ee\U2013\U220f\U2013\U03c0\U2013\U00aa\U2013\U2215\U2014\U00
这些没有正确显示,我需要做些什么来解析这些吗?
“U”必须是小写的“u”
你用什么代码来设置NSString?字符串可能没有正确初始化,这对UILabel.
NSString
UILabel