iOS 13 UITextView converting UITextView to image is not working properly. Working fine in below iOS 12

后端 未结 5 1652
鱼传尺愫
鱼传尺愫 2020-12-10 07:28

How to solve this issue in iOS 13? I am taking screenshot of UITextView content size..Till iOS 12 everything is working fine. But issue with iOS 13 onwards it\'s not taking

5条回答
  •  孤城傲影
    2020-12-10 08:03

    To get this to work, I had to use a UILabel when rendering.

    It's configured with the same constraints/font/text as the textview, and when rendering - set the text in the label, hide the textview and show the label, and vice versa. Perhaps a little less complicated for me since the view I am rendering is not on the screen, but might still be an option.

提交回复
热议问题