Not too much code to share, just a question. Why is my label invisible if its height exceeds 8191 pixels?
You might think that this is too much, and why in the world I want such a long label ... it is dynamic, so you never know.
So, this is how it goes: I create my UIScrollView and start adding labels to init, of which 5. I set the text and went well. I have a method that will take 5 labels, get the size using NSString sizeWithFont:constrainedToSize:lineBreakMode: change them and reset the contentHeight UIScrollView. Things are good. The fact is that when the mark exactly exceeds 8191 pixels in height (and 300 in width), it disappears, is not visible, is tightened! gone.
If I cannot get this to work, I think I can split the text into several parts and create additional UILabels, but I want to avoid this.
Any ideas?
Here is some dummy code, easy to follow
NSError *er = nil;
The fictitious text is huge, making the label invisible.
source share