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

Dynamic type


One of the biggest new features of iOS 7 from a user experience standpoint is the ability to adjust OS-wide text formatting. This includes increasing the font weight (bold) and text size. These settings can be set in the device's settings application. Although it is not a requirement to support dynamic type, it is recommended to do so! Here is an example of these settings:

When typically dealing with fonts, we specify the font family name and the size we want to set, as follows:

[UIFont fontWithName:@"HelveticaNeue" size:19.0f]

When working with dynamic type, we will use fonts with styles instead of using the literal name of any font unlike the preceding code. UIFont has been equipped with a new method called preferredFontForTextStyle. This loads the selected font preferences from the user's device and sets the text to the given style. Here is an example of the multiple font styles:

The text on the left-hand side is the smallest size able to be rendered, the middle text is the largest...

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