iphone - RTL shows numbers at the end of lines -
Trying to display a Hebrew string that starts with a number, always in the end, Displays: 1
It happens with UILBL -
& amp; UITextField & amp; UITextView
and in the attempt to write numbers on the left, the same leakage is produced.
Playing with a combination of UITextAnignment does not help.
You do not need to change any settings on UILBL, just before the letter is unicode Insert with 0x200F. This is the reason:
Unicode has a specific directionality in many letters, which the system knows that it should be written, such as LIT, such as سلام. Article usually uses the direction of its first character, this is the reason why your string is automatically inserted from the right to the right without the number.
Now some letters, like numbers, are "weak" guidelines, so they basically take around you when you "write 1.", The system first sees 1, so Normal LTR takes the direction. Changing alignment will not help, because it changes the whole text to the right or center.
To solve this problem, two marker characters of Unicode (LTR: 0x200E, RTL: 200F) are there. If they are invisible, but directionalities are guided then "1 p.m." ...
- Press
If you "# x200f" + "1" " If you type it will be displayed as:
1 babak
Comments
Post a Comment