Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

7
  • 1
    This is working perfectly. I did not set the height. Increasing the priority of UItextview's vertical compression resistance to 1000 was only required. The UItextView has some insets, that's why autolayout gives errors as UItextview will need atleast 32 height, even if no content is in it, when scrolling is disabled. Commented Sep 2, 2017 at 8:02
  • Update: Height constraint is required if you want the height to be minimum to 20 or anything else. Other wise 32 will be considered as the min height. Commented Sep 2, 2017 at 8:16
  • @Nil Glad to hear it helps. Commented Sep 4, 2017 at 6:50
  • @MichaelRevlis, This works great. but when there is a large text then text is not displaying. you can select text do other processing but it is not visible. can you please help me with that. ? it happens when I uncheck scrolling enabled option. when I make textview scrolling enable then it displays perfectly but i want text view not to scroll. Commented Nov 8, 2017 at 12:57
  • @BhautikZiniya, have you try to build your app on a real device? I think it might be a simulator displaying bug. I have an UITextView with text font size 100. It is displayed fine on a real device but texts are invisible on a simulator. Commented Nov 9, 2017 at 9:15