forked from kharrison/CodeExamples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME
More file actions
26 lines (18 loc) · 1.03 KB
/
README
File metadata and controls
26 lines (18 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
=======================================================================
DynamicText - Responding to text size changes
Version 1.0 06 October 2013 Initial version.
Version 1.1 30 December 2013 Added UYLScaledTextViewController
=======================================================================
This is a example project showing how to respond to the user changing
the preferred text size.
The UYLTextStyleViewController shows the standard way to listen for
and respond to changes to the users preferred text size using the
built-in UIFont Text Styles.
For further details see the following blog post:
http://useyourloaf.com/blog/2013/12/17/supporting-dynamic-type.html
The UYLScaledTextStyleViewController extends the basic approach by
showing how to scale the preferred fonts using a UIFontDescriptor.
A convenience method to return the scaled font is added as a
category of UIFont for this purpose.
For further details see the following blog post:
http://useyourloaf.com/blog/2013/12/30/scaling-dynamic-type-with-font-descriptors.html