I want to use core text to draw string that can span over 100 pages. I’m trying to put a UIView in a UIScrollView. I’m overriding drawRect: to add text in this instance of UIView. The problem here is that I want to have only one UIView which is vertically scrollable and when I set the size of UIView to more than 17000 px, it doesn’t show anything. So my question is how to write a huge amount of text using coretext in a single UIView so that it is vertically scrollable like UIVextView. Need help in this direction. Thanks
I want to use core text to draw string that can span over 100
Share
I think you would be better off by using multiple UIView’s, also performance-wise. Try to create a subclass that creates another UIView for every x lines of text (e.g. 1 page), and let it draw just before it would enter the screen.
If this is not a possibility, why exactly would you need it to be in 1 UIView, and what do you need so much text in a scrollview for?