UITextField Disables Unicode Character Descriptors

Is there a way to get a UITextField to display an NSString containing unicode index characters (e.g. ₂, ₃) correctly without disabling them? I start with a UITextField created in IB.

I tried:

  • setting frame.size.height to a UITextField is longer in code (just centers the cropped characters in a higher field)

  • changing the contentVerticalAlignment property to UIControlContentVerticalAlignmentTop - just pushes truncated characters at the top

  • playing with ClipSubviews / Autoresize Subviews-no effect

This is for a chemical program, so it’s very important to see the bottom half of the numbers. Help!

+3
source share
3 answers

I have not found a way to make it work for UITextField.

. UILabel -. .

+1

?

textField.font = [UIFont systemFontOfSize:14];

- = - = - = - = - = -

, , , , UILabel (CGSize) sizeThatFits: (CGSize).

sizeToFit UILabel,

0

, , , / descender, .

0