How to automatically adjust the height according to the number of characters when embedding an Xib file in View.
During non-automatic adjustment:
The green View is cut off in the middle.
After automatic adjustment:
The green View is displayed to the end.
【Solutions】
Changed the setting of View that displays the Xib file embedded on StoryBoard as follows.
Layout→Autoresizing Mask
Set the constraint that you want to be automatically adjusted by Autoresizing.
Recommended Posts