Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.9k views
in Technique[技术] by (71.8m points)

objective c - Unicode characters being drawn differently in iOS5

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.

enter image description here

Left : iOS 5 Right : iOS 3.2

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

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

You can try to use Unicode6.1's variation selector. For about Emoji, adding "U0000FE0E" to specify non-coloured glyph.

For example, for about left-triangle(U+25C0), you can specify like @"U000025C0U0000FE0E", and that changed glyph from Apple Color Emoji style to non-colored plain emoji, at least on iOS6 simulator on Mountain Lion.

Swift 4.0

let glyph = "u{000025C0}u{0000FE0E}"

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...