Information Technology Reference
In-Depth Information
Setting fonts
You can change an object's font, but only to a very limited selection of default fonts. The universal iPhone/iPad
project in Figure 7.18 shows a default list that is known to work in IB and on devices. (The project is available
for download at http://www.wiley.com/xcodedevref .) Your Mac has a wider selection of fonts in-
stalled, but you can't use them in an iOS project, and Xcode 4 doesn't allow you to preview them in IB.
NOTE
The supported font list is updated regularly, and other fonts may be available in later versions of iOS. You may also
find that IB doesn't preview some fonts correctly even though they're supported on a device. For a more optimist-
ic list of supported fonts, see http://iOSFonts.com . Note you can add any third-party font to an iOS or Mac pro-
ject, but this requires some build customization. Chapter 13 includes an example.
FIGURE 7.18
These fonts are supported in iOS 4.2. The selection may change in future updates.
Search WWH ::




Custom Search