Unicode字符在iOS5中的绘制方式不同 [英] Unicode characters being drawn differently in iOS5

查看:138
本文介绍了Unicode字符在iOS5中的绘制方式不同的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

将uibutton的标题设置为u25C0会导致它在iOS5中有蓝色背景,但在iOS4.3中不会。



奇怪的是,将标题设置为u25C2, 2个字符在头上,按预期显示。去图

请注意,这个蓝色按钮目前在任何苹果应用程序中使用?



谢谢。



Left:iOS 5
Right:iOS 3.2



这是通过设置标题到前面说过的unicode字符。

解决方案

您需要适当地设置字体。你看到的蓝色图标是Apple Color Emoji字体中的U + 25C0。我不知道iOS上还有什么其他字体包含了你想要的符号,但是如果你找到了这个字体并且明确地设置了它,那么它就会显示你想要的图标。

Setting the title of a uibutton to u25C0 causes it to have a blue background in iOS5 but not in iOS4.3.

Strangely enough setting the title to u25C2, 2 characters a head in line, appears as expected. Go fig. I will be attaching an image later.

As a side note is this blue button currently in use in any Apple apps?

Thanks.

Left : iOS 5 Right : iOS 3.2

This was done by setting the title to the unicode character stated earlier.

解决方案

You need to set the font appropriately. The blue icon you're seeing is U+25C0 in the Apple Color Emoji font. I'm not sure what other fonts on iOS include the symbol you want, but if you find that font and set it explicitly then it should render the icon you want.

这篇关于Unicode字符在iOS5中的绘制方式不同的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆