Karedia Noorsil Karedia Noorsil - 7 months ago 29
Objective-C Question

How to increase max height of UITextView beyond 10000 in iOS?

I have a huge text to display in iOS UITextView which makes the height around 40000 but in XCode it says it cannot support size larger than 10000 by 10000.

Any solutions?


enter image description here

Avi Avi

The short answer is: you're doing it wrong.

A UITextView already allows scrolling through text. You don't make the view large enough to display the text, you make it large enough to fit on screen, and even in the macOS world, 10Kx10K is larger than any possible screen dimensions.