Chapter 5. Using Core Text

This chapter introduces Core Text, a new API available in iOS 3.2. If you're familiar with programming on Mac OS X, you may realize that Core Text isn't really a new API. It has been part of Mac OS X for years, and has now made the transition to iOS.

Here, you'll learn what Core Text is, how it's structured, and how to use it to render text in your applications, by adding a new Text tool to Dudel. After that's in place, you'll see how to use NSAttributedString to style your text, letting you change fonts and colors for portions of your string, which Core Text will render with equal ease. In this chapter, we'll keep the text rendering pretty simple, but in Chapter 6, we'll get a little fancier, adding GUI elements for ...

Get Beginning iPad Development for iPhone Developers: Mastering the iPad SDK 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.