What UI component would you recommend to display the article's body?
An UILabel with numberOfLines equals to zero or an UITextView with no
scrolling and fixed size?
Let's refer official documentation from Apple, for guidelines for usage of text content in app.
According to it, UIKit
framework provides three primary classes for displaying text content in an app’s user interface: UILabel
, UITextField
and UITextView
.
Below line hints at a possible recommendation for a specific use case:
Although these classes actually can support the display of arbitrary
amounts of text, labels and text fields are intended to be used for
relatively small amounts of text, typically a single line. Text views,
on the other hand, are meant to display large amounts of text.
If we consider a use case of displaying an Article, it is fair to assume it will have a substantial text content. And hence if we apply above guidelines, UITextView
seems to be a better tool for the job.
Next, when user is reading an article text, UITextView
has selectable text. This means that user can copy specific lines from article or get the device to speak the text too.