Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UITextView is not showing long text

I have an UITextView inside a UIScrollView. The textView display correctly when text is not too long.

enter image description here

But when text is long long, it is not showing text in textView. However, the textView is still selectable.

enter image description here

Here is my layout.

enter image description here

Thank you so much!

like image 212
Tan Nguyen Avatar asked Apr 30 '17 05:04

Tan Nguyen


1 Answers

I had the same problem displaying very long text (33745 chars) in a UITextView and after experimenting with different copy lengths the limitation is with the simulator. If the number of chars was over 7435 the simulator did not show the text but I could scroll, copy etc.

But testing on several devices, the 33745 chars text displayed correctly.

like image 120
Dennish Avatar answered Sep 23 '22 06:09

Dennish