iOS 中的 Android TextView 相当于什么?

What is the equivalent of Android TextView in iOS?

当我在 Google 和 Whosebug 中搜索 "Android TextView equivalent in iOS" 时,我希望能快速找到答案,但搜索和切换关键字需要花费一些时间。我发布这个问答对,以便其他人可以快速回答这些关键字。

我已经 Android 编程了大约一年,现在我开始 iOS。我一直在做的所有教程都使用 UILabel 来显示文本,但我想要多行文本,可能是一段很长,而 UILabel 似乎不适合。

这个出现了,但是方向错了(iOS到Android):

iOS to Android: How to display a TextView

还有一些其他 "equivalent" 问题,但不是我想要的问题:

iOS 中的 Android TextView 等价于 UILabelUITextView。您想要的大量文本是 UITextView。以下是摘自文档的描述:

UITextView

The UITextView class implements the behavior for a scrollable, multiline text region. The class supports the display of text using custom style information and also supports text editing. You typically use a text view to display multiple lines of text, such as when displaying the body of a large text document.

UILabel

The UILabel class implements a read-only text view. You can use this class to draw one or multiple lines of static text, such as those you might use to identify other parts of your user interface.

UITextField

A UITextField object is a control that displays editable text and sends an action message to a target object when the user presses the return button. You typically use this class to gather small amounts of text from the user and perform some immediate action, such as a search operation, based on that text.

以下是一些供进一步研究的链接: