Log In
Or create an account ->
Imperial Library
Home
About
News
Upload
Forum
Help
Login/SignUp
Index
About This eBook
Title Page
Copyright Page
Dedication Page
Contents
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 Authors
Acknowledgments
Endnote
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
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
Summary
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
Introducing Core Data
Entities and Models
Creating Contexts
Adding Data
Querying the Database
Removing Objects
Recipe: Using Core Data for a Table Data Source
Recipe: Search Tables and Core Data
Recipe: Adding Edits to Core Data Table Views
Recipe: A Core Data–Powered Collection View
Summary
13. Networking Basics
Recipe: Checking Your Network Status
Scanning for Connectivity Changes
The URL Loading System
Recipe: Simple Downloads
Recipe: Downloads with Feedback
Recipe: Background Transfers
Recipe: Using JSON Serialization
Recipe: Converting XML into Trees
Summary
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
Accessibility 101
Enabling Accessibility
Traits
Labels
Hints
Testing with the Simulator
Broadcasting Updates
Testing Accessibility on iOS
Speech Synthesis
Dynamic Type
Summary
A. Objective-C Literals
Numbers
Boxing
Container Literals
Subscripting
Feature Tests
Index
← Prev
Back
Next →
← Prev
Back
Next →