[英]Reduce space between two Unicode characters in Objective-C
I need to show two Unicode characters in a string ie superscript. 我需要在一个字符串(即上标)中显示两个Unicode字符。 I am doing that like this:
我这样做是这样的:
NSLog(@"%@",[NSString stringWithFormat:@"\u02e2\u00B9 2010"]);
And I am able to show that also, but my problem is that it's showing some space between these two characters. 而且我也能够证明这一点,但是我的问题是,这两个字符之间显示了一定的间距。 How can I reduce this space?
如何缩小空间?
Thanks in advance. 提前致谢。
there's no space between the 2 character, but just before "2010" ---> "ˢ¹ 2010" 两个字符之间没有空格,但是在“ 2010”之前--->“ˢ¹2010”
it's not clear if you want the space or not... 不清楚是否要空间...
if you want it just use: 如果您要使用,请使用:
NSLog(@"%@",[NSString stringWithFormat:@"\u02e2 \u00B9 2010"]);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.