Hebrew text showing rectangle in iOS on UIlabel?

2020-03-06 01:24发布

问题:

I have hebrew text and when I am showing on UILabel it showing some rectangle. please help.

Actual Text :-

בָּרוּךְ אַתָּה יְיָ, אֱלֹהֵֽינוּ מֶֽלֶךְ הָעוֹלָם, בּוֹרֵא פְּרִי הָעֵץ

out put :-

UPDATE :- I have created the UILabel Manually using storyboard xib and set font name and rectangles gone but when i using on programatically created UILabel it is not working.I double checked Font Name is fine .Any idea?

Font is :- Arial Hebrew(family name) ArialHebrew-Bold (font name) ArialHebrew (font name)

回答1:

Please check by mistake if you would be setting the system font size or font name again then it's won't work.Do it only once.