Book description
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
Creating direct touch-based interfaces with multi-touch, gestures, and custom gesture recognizers
Building and customizing controls in powerful ways
Adding novel motion effects
Alerting users via pop-ups, progress bars, local notifications, popovers, audio cues, and more
Using Xcode modules to easily integrate system frameworks and headers
Assembling views and animation, organizing view hierarchies, and understanding how views work together
Supporting multiple screen geometries with the breakthrough Auto Layout constraints system
Controlling keyboards, making onscreen elements “text aware,” and efficiently scanning and formatting text
Organizing user workspaces with view controllers
Managing photos, videos, email, and text messages
Leveraging enhanced iOS support for social media activities, including Flickr and Vimeo
Implementing VoiceOver accessibility, including text-to-speech
Getting started with Core Data-managed data stores
Leveraging powerful networking and web services support
Using APIs to enhance the user experience
Table of contents
- About This eBook
- Title Page
- Copyright Page
- Dedication Page
- Contents
- Preface
- Acknowledgments
- About the Authors
- Editor’s Note: We Want to Hear from You!
- Reader Services
-
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
- 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
- Recipe: Image Gallery Viewer
- Building Toolbars
- Summary
-
3. Alerting the User
- Talking Directly to Your User through Alerts
- Recipe: Using Blocks with Alerts
- Recipe: Using Variadic Arguments with Alert Views
- Presenting Lists of Options
- “Please Wait”: Showing Progress to Your User
- Recipe: Modal Progress Overlays
- Recipe: Custom Modal Alert View
- 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: Key Frame Animations
- Recipe: Image View Animations
- Summary
-
5. View Constraints
- What Are Constraints?
- Constraint Attributes
- The Laws of Constraints
- Constraints and Frames
- Creating Constraints
- Format Strings
- Predicates
- Format String Summary
- Aligning Views and Flexible Sizing
- Constraint Processing
- Managing Constraints
- Recipe: Comparing Constraints
- Recipe: Creating Fixed-Size Constrained Views
- Recipe: Centering Views
- Recipe: Setting Aspect Ratio
- Recipe: Responding to Orientation Changes
- Debugging Your Constraints
- Recipe: Describing Constraints
- Constraint Macros
- Summary
-
6. Text Entry
- Recipe: Dismissing a UITextField Keyboard
- Recipe: Dismissing Text Views with Custom Accessory Views
- Recipe: Adjusting Views Around Keyboards
- 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: Custom Containers
- Recipe: Segues
- Summary
- 8. Common Controllers
-
9. 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 UIDatePicker
- Summary
-
10. 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
-
11. Documents and Data Sharing
- Recipe: Working with Uniform Type Identifiers
- Recipe: Accessing the System Pasteboard
- Recipe: Monitoring the Documents Folder
- Recipe: Activity View Controller
- Recipe: The Quick Look Preview Controller
- Recipe: Using the Document Interaction Controller
- Recipe: Declaring Document Support
- Recipe: Creating URL-Based Services
- Summary
- 12. A Taste of Core Data
- 13. Networking Basics
-
14. Device-Specific Development
- Accessing Basic Device Information
- Adding Device Capability Restrictions
- Recipe: Checking Device Proximity and Battery States
- Recipe: Recovering Additional Device Information
- Core Motion Basics
- Recipe: Using Acceleration to Locate “Up”
- Working with Basic Orientation
- Recipe: Using Acceleration to Move Onscreen Objects
- Recipe: Accelerometer-Based Scroll View
- Recipe: Retrieving and Using Device Attitude
- Detecting Shakes Using Motion Events
- Recipe: Using External Screens
- Tracking Users
- One More Thing: Checking for Available Disk Space
- Summary
- 15. Accessibility
- A. Objective-C Literals
- Index
Product information
- Title: The Core iOS Developer’s Cookbook, Fifth Edition
- Author(s):
- Release date: March 2014
- Publisher(s): Addison-Wesley Professional
- ISBN: 9780133510119
You might also like
book
Test-Driven iOS Development with Swift - Fourth Edition
Build robust applications using TDD with Swift 5.5 and become a TDD expert by writing tests …
book
Swift Recipes for iOS Developers: Real-Life Code from App Store Apps
Boost your iOS developer career by learning from real-life examples and start writing code for one …
book
iOS Programming: The Big Nerd Ranch Guide, 6th Edition
Updated for Xcode 8, Swift 3, and iOS 10, iOS Programming: The Big Nerd Ranch Guide …
book
iOS Programming: The Big Nerd Ranch Guide
Updated and expanded to cover iOS 7 and Xcode 5, leads you through the essential concepts, …