Spentak
Spentak

Reputation: 3359

UILabel Only Supports Certain Unicode Characters

My app uses unicode characters. These characters (not the actual codes) are pasted directly into a PLIST file and then imported.

Some of them are not appearing correctly in UILabel and UIButton

When I print them to the log in Xcode they appear normal, but when displayed on the iPhone/Simulator some of the characters turn into an "alien in a box".

See image for example of problem (screenshot from UIButton titles)

enter image description here

Upvotes: 0

Views: 519

Answers (1)

Duncan C
Duncan C

Reputation: 131503

My guess is that the font you are using does not define these characters. Select a font (or build one into your app) that includes the characters you need.

Upvotes: 3

Related Questions