Large Text Being Cut Off in UITextView That is Inside UIScrollView

后端 未结 17 1686
挽巷
挽巷 2020-11-29 02:03

I\'m having a serious problem that I just can\'t seem to fix and it\'s driving me insane for the last two days. I have searched far and wide and I can\'t find a solution, e

17条回答
  •  死守一世寂寞
    2020-11-29 02:49

    This issue can be fixed by setting the contiguous layout property to false.

    textView.layoutManager.allowsNonContiguousLayout = false
    

    Although the documentation says that the default value is false, it is actually set to true for a UITextView.

提交回复
热议问题