SPECIAL OFFERS
Keep up with new releases and promotions. Sign up to hear from us.
Register your product to gain access to bonus material or receive a coupon.
This eBook includes the following formats, accessible from your Account page after purchase:
EPUB
The open industry format known for its reflowable content and usability on supported mobile devices.
MOBI
The eBook format compatible with the Amazon Kindle and Amazon Kindle applications.
PDF
The popular standard, used most often with the free Adobe® Reader® software.
This eBook requires no passwords or activation to read. We customize your eBook by discreetly watermarking it with your name, making it uniquely yours.
The Gourmet iOS Developer’s Cookbook offers a fresh banquet of delicious cutting-edge iOS programming recipes for projects both big and small. Renowned iOS programming expert Erica Sadun brings together reliable, proven code for creating today’s richest, most robust apps.
Sadun presents innovative ways to make the most of AVFoundation, Text Kit, animation, adaptive interface programming, and much more. As in all of her iOS best-sellers, this pragmatic guide translates modern best practices into working code, distilling key concepts into recipes you can understand and build on.
This is more than just cut-and-paste; using examples, Sadun offers a deep dive into the “how” and “why” of advanced iOS development. The code reflects iOS’s latest capabilities, and every chapter groups related tasks together, so you can jump straight to your solution.
Coverage includes
Is Swift Development Right for You?
Notes from WWDC 2015: Failing Gracefully: Swift 2.0 Error Handling
Notes from WWDC 2015: Playing in a GameplayKit Wonderland
Notes from WWDC 2015: Restructuring the Apple Developer Program
Notes from WWDC 2015: The Enumerated Delights of Swift 2.0 Option Sets
OS X for iOS Developers: Why You Should Be Building Desktop Applications
Swift Development: Nobody Knows the Tuples I've Seen
Please visit the author's site here.
The Gourmet iOS Developer's Cookbook: Dynamic Animators
Download the sample pages (includes Chapter 6 and Index)
Preface xiii
Chapter 1: Media 1
Speech 1
Other Options 3
Delegate Callbacks 3
Dictation 5
Creating Barcodes 5
Filter Parameters 5
Building Codes 6
Reading Barcodes 8
Listening for Metadata Objects 10
Responding to Metadata 11
Extracting Bounds 13
Enhancing Recognition 14
Detecting Faces 14
Building AVFoundation Movies 14
Creating a Pixel Buffer 16
Drawing into the Pixel Buffer 17
Expressive Drawing 18
Building Movies from Frames 19
Adding Images to Movies 23
Wrap-up 24
Chapter 2: Dynamic Typography 25
Type Size and User Needs 25
How Dynamic Type Works 25
Listening for Type Updates 28
Handling Dynamic Type with Attributes 31
Scanning for Text Style Ranges 32
Applying Text Style Ranges 34
Attribute-Ready Dynamic Elements 35
Custom Fonts Faces 36
Dynamic Text Views 37
Custom Sizing 38
Font Descriptors 39
Descriptor Challenges 40
Fonts with Multiple Variations 41
Using String Attributes to Modify Fonts 42
Dynamic Type Gotchas 43
Wrap-up 43
Chapter 3: Text Kit 45
Creating Complex Text Layouts 45
Glyphs 46
Text Storage 55
Layout Managers 56
Text Containers 56
Adaptive Flow 58
Insets 60
Exclusion Paths 60
Bounding Rectangles 62
Using Text Kit to Add Touch to Labels 63
Establishing Text Kit 63
Synchronizing 64