Skip to main content
Logo Appt Light

Input label on iOS

Input fields should have labels so that users know what input data is expected. These labels should stay visible while users are entering data. A placeholder which disappears while entering data does not count as a label.

On iOS, there is no attribute to link a label to an input field. We recommend combining UILabel with a UITextField or UITextView.

Set the accessibilityLabel of the field to the text of the label.

label.text = "Name"
field.accessibilityLabel = label.text

Feedback?

Let us know!