Reputation: 599
I have an issue on iOS devices larger than 4 inches.
As you can see, there is a large gap of whitespace at the bottom of my Text View. I am wondering how to clean it up to remove this whitespace using Interface Builder.
Upvotes: 0
Views: 338
Reputation: 4373
Simply change your bottom constraint to >= current value instead of equal and the UITextView will start resizing provided scrolling enabled is unchecked.
Upvotes: 3
Reputation: 513
Auto - Resizing If you are using the auto-resizing for the text view then remove set the following setting for the auto-resizing tab.
This might be your settings, for the text view
Change it to the following setting,
Do not stretch the content of the text view, And if you are worried about the content not displaying in the set height then that is not an issue, there is a already a scroll in the text view controller, make sure that is enabled.
Auto - Layout If You are using Auto Layout in your app then set the constraints as shown in the below image on your text view,
Add these four constraints, Left, right, top and the height of the text view.
Upvotes: 1
Reputation: 1092
You just need to uncheck
Scrolling Enabled
Got the answers from here
Upvotes: 3