Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Application Development in iOS 7
  • Table Of Contents Toc
  • Feedback & Rating feedback
Application Development in iOS 7

Application Development in iOS 7

By : Kyle Begeman
4.7 (3)
close
close
Application Development in iOS 7

Application Development in iOS 7

4.7 (3)
By: Kyle Begeman

Overview of this book

Table of Contents (15 chapters)
close
close
Application Development in iOS 7
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
1
Index

What is TextKit?


Prior to iOS 6, providing mixed styles for your text was available using UIWebView and HTML markup or using the lower level framework Core Text. With the launch of iOS 6, Apple introduced attributed strings, allowing developers to adjust color and font attributes on defined subsections of any string. The first 10 characters could be set to a color of yellow and the remaining characters a bold font.

In iOS 6, text-based UIKit controls were based on both Core Graphics and WebKit. Here is a diagram to illustrate the hierarchy:

You will notice that UITextView actually uses WebKit itself for the sake of drawing attributed text using HTML. Although attributed strings provided many solutions for working with text, they were limited in flexibility for advanced layouts. This multi-line rendered text required the use of Core Text. This framework is very difficult to work with and understand.

With iOS 7, Apple has introduced TextKit to streamline working with text. Apple now inherits...

Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Application Development in iOS 7
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon