UITextView that expands to text using auto layout

前端 未结 16 2059
面向向阳花
面向向阳花 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:49

    Here's a quick solution:

    This problem may occur if you have set clipsToBounds property to false of your textview. If you simply delete it, the problem goes away.

    myTextView.clipsToBounds = false //delete this line
    

提交回复
热议问题