Hints

Assign the accessibilityHint property to set an element’s hint. Hints tell users what to expect from interaction. In particular, they describe any nonobvious results. For example, consider an interface where tapping on a name—for example, John Smith—attempts to call that person by telephone. The name itself offers no information about the interaction outcome, so offer a hint telling the user about it—for example, “Places a phone call to this person,” or, even better, “Places a phone call to John Smith.” Here are tips for building better hints:

Image Use sentence form. Start with a capital letter and end with a period. Do this even though each ...

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.