Book description
The Core iOS 6 Developer’s Cookbook brings together reliable, proven solutions for the heart of day-to-day iOS 6 development. World-renowned iOS programming expert Erica Sadun covers all the classes you’ll need to create successful iOS 6 mobile apps with standard APIs and interface elements and take full advantage of iOS 6 graphics, touches, and views.
As in her previous bestselling iOS books, Sadun translates today’s development best practices into working code, distilling key concepts into concise recipes that are easy to understand and transfer into your own projects. This isn’t just cut-and-paste; using her examples, Sadun fully explains both the “how” and “why” of effective iOS 6 development.
All code has been fully revised and extensively tested to reflect the latest iOS 6 features and the newest iPhone, iPad, and iPod touch capabilities. Throughout, every chapter groups related tasks together, so you can jump straight to your solution, without having to identify the right class or framework first. Coverage includes
Supporting direct user input through multitouch and gestures, including custom gesture recognizers
Building, customizing, and using iOS 6 controls
Alerting users via popup dialogs, progress bars, local notifications, popovers, audio pings, and other techniques
Assembling views and animation, organizing view hierarchies, and understanding how views work together
Using iOS 6’s breakthrough autolayout constraints system to simplify support for multiple screen geometries controlling keyboards, making onscreen elements “text aware,” and efficiently scanning and formatting text
Using view controllers to organize your users’ workspaces
Managing photos, videos, email, text messages, and iOS 6-enhanced social media updates
Implementing VoiceOver accessibility to reach even more users
Organizing apps simply and intuitively with tables and adding flexibility with iOS 6’s brand new collection views
Getting started with Core Data managed data stores
Leveraging iOS 6’s powerful networking and web services support
For related content by author Erica Sadun, see iOS Auto Layout Demystified, and The Advanced iOS 6 Cookbook.
Table of contents
- Title Page
- Copyright Page
- Dedication Page
- Contents at a Glance
- Table of Contents
- Acknowledgments
- About the Author
- Preface
-
1. Gestures and Touches
- Touches
- Recipe: Adding a Simple Direct Manipulation Interface
- Recipe: Adding Pan Gesture Recognizers
- Recipe: Using Multiple Gesture Recognizers Simultaneously
- Recipe: Constraining Movement
- Recipe: Testing Touches
- Recipe: Testing Against a Bitmap
- Recipe: Drawing Touches Onscreen
- Recipe: Smoothing Drawings
- Recipe: Using Multi-Touch Interaction
- Recipe: Detecting Circles
- Recipe: Creating a Custom Gesture Recognizer
- Recipe: Dragging from a Scroll View
- Recipe: Live Touch Feedback
- Recipe: Adding Menus to Views
- Summary
-
2. Building and Using Controls
- The UIControl Class
- Buttons
- Buttons in Interface Builder
- Recipe: Building Buttons
- Recipe: Animating Button Responses
- Recipe: Adding a Slider with a Custom Thumb
- Appearance Proxies
- Recipe: Creating a Twice-Tappable Segmented Control
- Working with Switches and Steppers
- Recipe: Subclassing UIControl
- Recipe: Building a Star Slider
- Recipe: Building a Touch Wheel
- Recipe: Creating a Pull Control
- Recipe: Building a Custom Lock Control
- Adding a Page Indicator Control
- Recipe: Creating a Customizable Paged Scroller
- Building Toolbars
- Summary
-
3. Alerting the User
- Talking Directly to Your User Through Alerts
- “Please Wait”: Showing Progress to Your User
- Recipe: No-Button Alerts
- Recipe: Creating Modal Alerts with Run Loops
- Recipe: Using Variadic Arguments with Alert Views
- Presenting Lists of Options
- Recipe: Building Custom Overlays
- Recipe: Basic Popovers
- Recipe: Local Notifications
- Alert Indicators
- Recipe: Simple Audio Alerts
- Summary
-
4. Assembling Views and Animations
- View Hierarchies
- Recipe: Recovering a View Hierarchy Tree
- Recipe: Querying Subviews
- Managing Subviews
- Tagging and Retrieving Views
- Recipe: Naming Views by Object Association
- View Geometry
- Recipe: Working with View Frames
- Recipe: Retrieving Transform Information
- Display and Interaction Traits
- UIView Animations
- Recipe: Fading a View In and Out
- Recipe: Swapping Views
- Recipe: Flipping Views
- Recipe: Using Core Animation Transitions
- Recipe: Bouncing Views as They Appear
- Recipe: Image View Animations
- Summary
-
5. View Constraints
- What Are Constraints?
- Alignment Rectangles
- Constraint Attributes
- The Laws of Constraints
- Creating Constraints
- Format Strings
- Predicates
- Format String Summary
- Storing and Updating Constraints
- Recipe: Comparing Constraints
- Recipe: Describing Constraints
- Recipe: Creating Fixed-Size Constrained Views
- Recipe: Centering Views
- Recipe: Setting Aspect Ratio
- Aligning Views and Flexible Sizing
- Recipe: Responding to Orientation Changes
- Constraint Macros
- Debugging Your Constraints
- Summary
-
6. Text Entry
- Recipe: Dismissing a UITextField Keyboard
- Recipe: Dismissing Text Views with Custom Accessory Views
- Recipe: Adjusting Views Around Keyboards
- Recipe: Adjusting Views Around Accessory Views
- Recipe: Creating a Custom Input View
- Recipe: Making Text-Input-Aware Views
- Recipe: Adding Custom Input Views to Nontext Views
- Recipe: Building a Better Text Editor (Part I)
- Recipe: Building a Better Text Editor (Part II)
- Recipe: Text-Entry Filtering
- Recipe: Detecting Text Patterns
- Recipe: Detecting Misspelling in a UITextView
- Searching for Text Strings
- Summary
-
7. Working with View Controllers
- View Controllers
- Developing with Navigation Controllers and Split Views
- Recipe: The Navigation Item Class
- Recipe: Modal Presentation
- Recipe: Building Split View Controllers
- Recipe: Creating Universal Split View/Navigation Apps
- Recipe: Tab Bars
- Remembering Tab State
- Recipe: Page View Controllers
- Recipe: Scrubbing Pages in a Page View Controller
- Recipe: Custom Containers
- Recipe: Segues
- Summary
-
8. Common Controllers
- Image Picker Controller
- Recipe: Selecting Images
- Recipe: Snapping Photos
- Recipe: Recording Video
- Recipe: Playing Video with Media Player
- Recipe: Editing Video
- Recipe: Picking and Editing Video
- Recipe: E-Mailing Pictures
- Recipe: Sending a Text Message
- Recipe: Posting Social Updates
- Recipe: Activity View Controller
- Recipe: The Quick Look Preview Controller
- Summary
- 9. Accessibility
-
10. Creating and Managing Table Views
- iOS Tables
- Delegation
- Creating Tables
- Recipe: Implementing a Basic Table
- Table View Cells
- Recipe: Creating Checked Table Cells
- Working with Disclosure Accessories
- Recipe: Table Edits
- Recipe: Working with Sections
- Recipe: Searching Through a Table
- Recipe: Adding Pull-to-Refresh to Your Table
- Recipe: Adding Action Rows
- Coding a Custom Group Table
- Recipe: Building a Multiwheel Table
- Using the UIDatePicker
- Summary
-
11. Collection Views
- Collection Views Versus Tables
- Establishing Collection Views
- Flow Layouts
- Recipe: Basic Collection View Flows
- Recipe: Custom Cells
- Recipe: Scrolling Horizontal Lists
- Recipe: Introducing Interactive Layout Effects
- Recipe: Scroll Snapping
- Recipe: Creating a Circle Layout
- Recipe: Adding Gestures to Layout
- Recipe: Creating a True Grid Layout
- Recipe: Custom Item Menus
- Summary
- 12. A Taste of Core Data
- 13. Networking Basics
- Appendix. Objective-C Literals
- Index
Product information
- Title: The Core iOS 6 Developer’s Cookbook, Fourth Edition
- Author(s):
- Release date: December 2012
- Publisher(s): Addison-Wesley Professional
- ISBN: 9780133120844
You might also like
book
Righting Software
Right Your Software and Transform Your Career Righting Software presents the proven, structured, and highly engineered …
book
Metal Programming Guide: Tutorial and Reference via Swift
Master Metal: The Next-Generation Graphics and GPU Programming Platform for Apple Developers Metal enables Apple developers …
book
Optimized C++
In today’s fast and competitive world, a program’s performance is just as important to customers as …
book
iOS Core Animation: Advanced Techniques
Core Animation is the technology underlying Apple’s iOS user interface. By unleashing the full power of …