UITextView that expands to text using auto layout

前端 未结 16 2090
面向向阳花
面向向阳花 2020-11-28 01:25

I have a view that is laid out completely using auto layout programmatically. I have a UITextView in the middle of the view with items above and below it. Everything works f

16条回答
  •  半阙折子戏
    2020-11-28 01:56

    vitaminwater's answer is working for me.

    If your textview's text is bouncing up and down during edit, after setting [textView setScrollEnabled:NO];, set Size Inspector > Scroll View > Content Insets > Never.

    Hope it helps.

提交回复
热议问题