What\'s the fundamental difference between them?
Is a UITextField
that\'s not editable is effectively a UILabel
?
Are those essentia
In addition to the above answers, UITextView has selectable text. This means that you can copy it or get the device to speak the text.
UILabel
class implements a read-only text view."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."UITextView
class implements the behavior for a scrollable, multiline text region."So:
Also in addition to this: Only with UILabel you can get the Auto shrink feature, otherwise you should implement that (if needed)
Finally Apple have covered this part in this amazing talk:
https://developer.apple.com/videos/play/wwdc2018/221/
The key takeways is as followed: