iOS should I use UILabel for a large text

I am loading a text from an external API. The text is about 1000 – 3000 character.

Would a UILabel be good to hold this big text?

I already have my view wrapped inside a scroll view. So I was thinking of checking the height of the label when it has finished getting the text from the API, then calculate and set a new heigh on the scroll view.

I only want to display a static text, but with the function that will let the user to hold-copy a selection of the text.

Is a UILabel able to hold a text this big, or should I use a text view which has scrolling/editing disabled?

Thanks in advance,


Source: ios

Leave a Reply