IOS: recorded accent in first character not showing in UILabel

I want to show UILabel

with a written accent in the first character, but it doesn't appear.

Here's a quick explanation:

I have UIView

(in the xib file) that has a header and I align the text vertically with a constraint. I tried adding accented text (á, é, í, ó, ú) programmatically and using Xcode, but with no success.

+3


source to share


1 answer


I think there is a bug in xcode. If you do not set a height limitation, the UILabel height adjusts automatically. This does not happen when the UILabel has an accent mark and it does not appear.



I solved the problem by adding a height constraint slightly higher than the current one.

+3


source







All Articles