I have a label that was created using the iOS layouts layout.
The content of the label, however, is dynamic and may change at runtime.
How to make sure the height of the label is adjusted based on the contents on the label.
I tried:
Setting the number of rows to 0
Editor -> Size to Fit Content settings Editor -> Size to Fit Content .
But they do not work. The text in the label is printed on only one line, and as a result, the text does not appear on the screen.
Any help would be greatly appreciated.
ios xcode swift storyboard
user462455
source share