Other Text Field Properties
In addition to the standard text traits, text fields offer other properties that control how the field is presented. Here are ones you should know about:
Placeholder—Figure 6-2 shows a field’s placeholder text. This text appears in light gray when the text field is empty. It provides a user prompt that describes the target content for that field. Use the placeholder to provide usage hints such as User Name or E-mail address, as demonstrated in Figure 6-2.
Get The Core iOS Developer’s Cookbook, Fifth Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.