Large Text Being Cut Off in UITextView That is Inside UIScrollView

后端 未结 17 1675
挽巷
挽巷 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:47

    For me the solution was to put sizeToFit after customizing the textView

    [self.yourTextView sizeToFit];
    

    This should be the last thing you do when manipulating the textview, should not be before you populate the content text.

提交回复
热议问题