UITextView text cut off when there is a large amount of text

前端 未结 3 1201
独厮守ぢ
独厮守ぢ 2021-01-13 19:17

I have a UITableViewCell subclass that contains a UITextView where scrolling is turned off. I set its frame like this, in my table view cell layoutSubviews method:



        
3条回答
  •  南笙
    南笙 (楼主)
    2021-01-13 19:43

    I had the same issue and resolved it working on the textView padding (in swift5):

    yourTextView.textContainerInset = UIEdgeInsets(top: 5, left: 5, bottom: 5, right: 5)

    Hope it can help :)

提交回复
热议问题