Working with Dynamic Type

With the introduction of iOS 7, the way we work with text has greatly improved. The whole iOS structure has been refined to make it easier for us to complete complex tasks with the help of an easier-to-use framework: Text Kit. The main controls based on text, such as UILabel, UITextField, and UITextView are defined at the top of Text Kit.

Before iOS 7, the only way to handle text layout was working with Web views or text core, a really complex framework that is still at the base of the text drawing. Fortunately, thanks to Text Kit, you are much less likely to work directly with it now.

We won't explore Text Kit in detail here, but we will definitely talk about one of its features that is closely related to adaptive layouts: ...

Get Learning iOS UI Development 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.