SKIP THE SHIPPING
Use code NOSHIP during checkout to save 40% on eligible eBooks, now through January 5. Shop now.
Register your product to gain access to bonus material or receive a coupon.
The best place to start iOS application development
The Core iOS Developer’s Cookbook provides ready-to-use code solutions for common iOS challenges, providing recipes that help you master the core technology at the heart of iOS. Renowned iOS programming expert Erica Sadun and top iOS developer Rich Wardwell cover the topics you need to create successful mobile applications that take full advantage of iOS graphics, touches, and views.
As in all of Sadun’s iOS bestsellers, The Core iOS Developer’s Cookbook translates modern best practices into working code, distilling key concepts into concise recipes you can easily understand and apply to your own projects. This isn’t just cut-and-paste; using examples, Sadun and Wardwell fully explain both the “how” and “why” that underscore effective and successful iOS development.
Coverage includes
Add Implicit Animations to Your iOS Views, Part 1
Add Implicit Animations to Your iOS Views, Part 2
Adding Bounce to Your UIViews: The Joy of Damped Harmonics in iOS 7 Development
Blocks to Basics in Objective-C
Building a Bag Class in Swift: Explorations into Generics and the Swift Generator Underbelly
Building Blocks into AVFoundation Movies in Objective-C
Enough About Swift Closures to Choke a Horse
Init to Winit: Building Success with Swift Class Initializers
Interface Lessons from "A Dark Room"
iOS Developer's Cookbook: Painting Sprite Kit
iOS Developer's Cookbook: Sprite Kit Label Shadows
iOS Developer's Cookbook: Visualizing Sprite Kit
iOS Development: A Fistful of Directive Tricks
Quis custodiet ipsos custodes? Going Heisenberg on iOS' NSNotificationCenters
The Art of Deliberate Touches: Building a Triggered Tap Gesture Recognizer
Training Users for Cheap: Offering Simple Guided Tours in Your Mobile Interfaces
What's Up, Docs? Find the Right Xcode Documentation, Exactly When You Need It
For code files, please visit the authors' website at here
Implementing Gestures and Touches in iOS 7
Download the sample pages (includes Chapter 1 and Index)
Preface xiii
Chapter 1: Gestures and Touches 1
Touches 1
Recipe: Adding a Simple Direct Manipulation Interface 5
Recipe: Adding Pan Gesture Recognizers 7
Recipe: Using Multiple Gesture Recognizers Simultaneously 9
Recipe: Constraining Movement 14
Recipe: Testing Touches 15
Recipe: Testing Against a Bitmap 17
Recipe: Drawing Touches Onscreen 20
Recipe: Smoothing Drawings 22
Recipe: Using Multi-Touch Interaction 26
Recipe: Detecting Circles 29
Recipe: Creating a Custom Gesture Recognizer 34
Recipe: Dragging from a Scroll View 37
Recipe: Live Touch Feedback 40
Recipe: Adding Menus to Views 45
Summary 47
Chapter 2: Building and Using Controls 49
The UIControl Class 49
Buttons 53
Buttons in Interface Builder 55
Recipe: Building Buttons 56
Recipe: Animating Button Responses 60
Recipe: Adding a Slider with a Custom Thumb 62
Recipe: Creating a Twice-Tappable Segmented Control 67
Working with Switches and Steppers 70
Recipe: Subclassing UIControl 72
Recipe: Building a Star Slider 76
Recipe: Building a Touch Wheel 79
Recipe: Creating a Pull Control 83
Recipe: Building a Custom Lock Control 88
Recipe: Image Gallery Viewer 93
Building Toolbars 96
Summary 98
Chapter 3: Alerting the User 101
Talking Directly to Your User through Alerts 101
Recipe: Using Blocks with Alerts 105
Recipe: Using Variadic Arguments with Alert Views 110
Presenting Lists of Options 112
“Please Wait”: Showing Progress to Your User 115
Recipe: Modal Progress Overlays 117
Recipe: Custom Modal Alert View 119
Recipe: Basic Popovers 124
Recipe: Local Notifications 126
Alert Indicators 128
Recipe: Simple Audio Alerts 129
Summary 133
Chapter 4: Assembling Views and Animations 135
View Hierarchies 135
Recipe: Recovering a View Hierarchy Tree 137
Recipe: Querying Subviews 139
Managing Subviews 141
Tagging and Retrieving Views 142
Recipe: Naming Views by Object Association 143
View Geometry 146
Recipe: Working with View Frames 150
Recipe: Retrieving Transform Information 158
Display and Interaction Traits 164
UIView Animations 165
Recipe: Fading a View In and Out 167
Recipe: Swapping Views 168
Recipe: Flipping Views 169
Recipe: Using Core Animation Transitions 170
Recipe: Bouncing Views as They Appear 172
Recipe: Key Frame Animations