Text Kit Tutorial
Note from Ray: This is an abbreviated version of a chapter from iOS 7 by Tutorials that we are releasing as part of the iOS 7 Feast. We hope you enjoy!
The way that text is rendered in iOS has changed a lot over the years as more powerful features and capabilities have been added.
This latest iOS release brings with it
some of the most significant text rendering changes yet.
In the old days before iOS 6, web views were usually the easiest way to render text with mixed styling, such as bold, italics, or even colors.
Last year, iOS 6 added attributed string support to a number of UIKit controls. This made it much easier to achieve this type of layout without resorting to rendered HTML — or so it would appear.
In iOS 6, text-based UIKit controls in iOS 6 were based on both WebKit and Core Graphics’ string drawing functions, as illustrated in the hierarchical diagram below:
two
Free
cvcccccvvvv
Comment on this post