November 2013
Intermediate to advanced
576 pages
19h 3m
English
iOS 7 added support for Dynamic Type, which enables the user to specify a font size at an OS level. Users can access the Dynamic Type controls under the general section of iOS 7’s Settings.app (shown in Figure 21.5). When the user changes the preferred font size, the app will receive a notification named UIContentSizeCategoryDidChangeNotification. This notification should be monitored to handle updating the font size.
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(preferredSizeDidChange:) name:UIContentSizeCategoryDidChangeNotification object:nil];
Figure 21.5 Changing the systemwide font size using Dynamic Type settings in iOS 7’s Settings.app. ...
Read now
Unlock full access