【发布时间】:2013-04-24 09:28:23
【问题描述】:
当我使用 unicode 字符时,我想在我的应用程序中将 n 显示为下标,我的模拟器上会显示一个正方形。 想要在此处显示“bn” n 必须在下标处。这可能是一个基本问题,但我无法解决这个问题,因为我正在开发我的第一个应用程序。请帮我摆脱这些 提前谢谢..
我试过的代码是
NSString * strstatic=@"\nb \u2099;
GenEqn.text=[NSString stringWithFormat:@"Your Equation is ==> %@",strstatic];
【问题讨论】:
-
这个问题可能重复..stackoverflow.com/questions/5080175/…
-
使用NSAttributedString,可以参考这个问题stackoverflow.com/questions/8555735/…
标签: iphone ios objective-c ios5