Home Page Icon
Home Page
Table of Contents for
Cover Page
Close
Cover Page
by Erica Sadun
The Core iOS 6 Developer’s Cookbook, Fourth Edition
Title Page
Copyright Page
Dedication Page
Contents at a Glance
Table of Contents
Acknowledgments
About the Author
Preface
What You’ll Need
Your Roadmap to Mac/iOS Development
How This Book Is Organized
About the Sample Code
Getting the Sample Code
Contribute!
Getting Git
Getting GitHub
Contacting the Author
Endnotes
Editor’s Note: We Want to Hear from You!
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
Accessibility 101
Enabling Accessibility
Traits
Labels
Hints
Testing with the Simulator
Broadcasting Updates
Testing Accessibility on the iPhone
Summary
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
13. Networking Basics
Recipe: Checking Your Network Status
Scanning for Connectivity Changes
Recipe: Synchronous Downloads
Recipe: Asynchronous Downloads
One-Call No-Feedback Asynchronous Downloads
Recipe: Using JSON Serialization
Recipe: Converting XML into Trees
Summary
Appendix. Objective-C Literals
Numbers
Boxing
Container Literals
Subscripting
Feature Tests
Search in book...
Toggle Font Controls
Playlists
Add To
Create new playlist
Name your new playlist
Playlist description (optional)
Cancel
Create playlist
Sign In
Email address
Password
Forgot Password?
Create account
Login
or
Continue with Facebook
Continue with Google
Sign Up
Full Name
Email address
Confirm Email Address
Password
Login
Create account
or
Continue with Facebook
Continue with Google
Next
Next Chapter
Title Page
Add Highlight
No Comment
..................Content has been hidden....................
You can't read the all page of ebook, please click
here
login for view all page.
Day Mode
Cloud Mode
Night Mode
Reset