Book description
“This book would be a bargain at ten times its price! If you are writing iPhone software, it will save you weeks of development time. Erica has included dozens of crisp and clear examples illustrating essential iPhone development techniques and many others that show special effects going way beyond Apple’s official documentation.”
—Tim Burks, iPhone Software Developer, TootSweet Software
“Erica Sadun’s technical expertise lives up to the Addison-Wesley name. The iPhone Developer’s Cookbook is a comprehensive walkthrough of iPhone development that will help anyone out, from beginners to more experienced developers. Code samples and screenshots help punctuate the numerous tips and tricks in this book.”
—Jacqui Cheng, Associate Editor, Ars Technica
“We make our living writing this stuff and yet I am humbled by Erica’s command of her subject matter and the way she presents the material: pleasantly informal, then very appropriately detailed technically. This is a going to be the Petzold book for iPhone developers.”
—Daniel Pasco, Lead Developer and CEO, Black Pixel Luminance
“The iPhone Developer’s Cookbook: Building Applications with the iPhone SDK should be the first resource for the beginning iPhone programmer, and is the best supplemental material to Apple’s own documentation.”
—Alex C. Schaefer, Lead Programmer, ApolloIM, iPhone Application Development Specialist, MeLLmo, Inc
“Erica’s book is a truly great resource for Cocoa Touch developers. This book goes far beyond the documentation on Apple’s Web site, and she includes methods that give the developer a deeper understanding of the iPhone OS, by letting them glimpse at what’s going on behind the scenes on this incredible mobile platform.”
—John Zorko, Sr. Software Engineer, Mobile Devices
The iPhone and iPod touch aren’t just attracting millions of new users; their breakthrough development platform enables programmers to build tomorrow’s killer applications. If you’re getting started with iPhone programming, this book brings together tested, ready-to-use code for hundreds of the challenges you’re most likely to encounter. Use this fully documented, easy-to-customize code to get productive fast—and focus your time on the specifics of your application, not boilerplate tasks.
Leading iPhone developer Erica Sadun begins by exploring the iPhone delivery platform and SDK, helping you set up your development environment, and showing how iPhone applications are constructed. Next, she offers single-task recipes for the full spectrum of iPhone/iPod touch programming jobs:
Utilize views and tables
Organize interface elements
Alert and respond to users
Access the Address Book (people), Core Location (places), and Sensors (things)
Connect to the Internet and Web services
Display media content
Create secure Keychain entries
And much more
You’ll even discover how to use Cover Flow to create gorgeous visual selection experiences that put scrolling lists to shame!
This book is organized for fast access: related tasks are grouped together, and you can jump directly to the right solution, even if you don’t know which class or framework to use. All code is based on Apple’s publicly released iPhone SDK, not a beta. No matter what iPhone projects come your way, The iPhone Developer’s Cookbook will be your indispensable companion.
Table of contents
- Copyright
- Praise for The iPhone Developer’s Cookbook
- Preface
- Acknowledgments
- About the Author
-
1. Introducing the iPhone SDK
- Apple’s iPhone SDK
- Assembling iPhone Projects
- iPhone Application Components
- Platform Limitations
- SDK Limitations
- Programming Paradigms
- Building an iPhone Application Skeleton
- The Hello World Application
- Building Hello World
- Apple’s iPhone Developer Program
- From Xcode to Your iPhone: The Organizer Interface
- Using Undocumented API Calls
- Ad Hoc Distribution
- Summary
-
2. Views
- UIView and UIWindow
- Recipe: Adding Stepwise Subviews
- Recipe: Dragging Views
- Recipe: Clipped Views
- Recipe: Detecting Multitouch
- UIView Animations
- Recipe: Fading a View In and Out
- Recipe: Swapping Views
- Recipe: Flipping Views
- Recipe: Applying CATransitions to Layers
- Recipe: Swiping Views
- Recipe: Transforming Views
- Summary
- 3. View Controllers
-
4. Alerting Users
- Talking Directly to Your User Through Alerts
- Recipe: Creating Multiline Button Displays
- Recipe: Autotimed No-Button Alerts
- Recipe: Soliciting Text Input from the User
- Recipe: Presenting Simple Menus
- “Please Wait”: Showing Progress to Your User
- Recipe: Invoking the Basic Undocumented UIProgressHUD
- Recipe: Using UIActivityIndicatorView
- Recipe: Building a UIProgressView
- Recipe: Adding Custom, Tappable Overlays
- Recipe: Building a Scroll-Down Alert
- Recipe: Adding Status Bar Images
- Adding Application Badges
- Recipe: Simple Audio Alerts
- Summary
-
5. Basic Tables
- Introducing UITableView and UITableViewController
- Recipe: Creating a Simple List Table
- Recipe: Creating a Table-Based Selection Sheet
- Recipe: Loading Images into Table Cells
- Recipe: Setting a Cell’s Text Traits
- Removing Cell Selections
- Recipe: Creating Complex Cells
- Recipe: Creating Checked Selections
- Recipe: Deleting Cells
- Recipe: Reordering Cells
- Recipe: Working with Disclosures
- Summary
-
6. Advanced Tables
- Recipe: Grouping Table Selections
- Recipe: Building a Section Table with an Index
- Recipe: Custom Cell Backgrounds
- Recipe: Creating Alternate Blue and White Cells
- Recipe: Framing Tables
- Recipe: Adding Coupled Cell Controls
- Recipe: Building a Multiwheel Table
- Recipe: Using the UIDatePicker
- Recipe: Creating Fully Customized Group Tables
- Summary
-
7. Media
- Recipe: Browsing the Documents Folder by File Type
- Loading and Viewing Images
- Recipe: Displaying Small Images
- Recipe: Using a UIWebView to Display Images
- Recipe: Browsing Your Image Library
- Recipe: Selecting and Customizing Images from the Camera Roll
- Recipe: Snapping Pictures with the iPhone Camera
- Working with iPhone Audio
- Recipe: Playing Audio with Celestial
- Recipe: Using the Media Player for Audio and Video Playback
- Recipe: Recording Audio
- Reading in Text Data
- Recovering Media from Backup Files
- Summary
-
8. Controls
- Recipe: Building Simple Buttons
- Recipe: Adding Animated Elements to Buttons
- Recipe: Animating Button Responses
- Recipe: Customizing Switches
- Recipe: Adding Custom Slider Thumbs
- Recipe: Dismissing a UITextField Keyboard
- Recipe: Dismissing UITextView Keyboards
- Recipe: Adding an Undo Button to Text Views
- Recipe: Creating a Text View–Based HTML Editor
- Recipe: Building an Interactive Search Bar
- Recipe: Adding Callout Views
- Adding a Page Indicator Control
- Recipe: Customizing Toolbars
- Summary
-
9. People, Places, and Things
- Address Book Frameworks
- Recipe: Accessing Address Book Image Data
- Recipe: Displaying Address Book Information
- Recipe: Browsing the Address Book
- Core Location
- Recipe: Core Location in a Nutshell
- Recipe: Reverse Geocoding to an Address
- Recipe: Accessing Maps Using Core Location Data
- Recipe: Accessing Core Device Information
- Recipe: Enabling and Disabling the Proximity Sensor
- Recipe: Using Acceleration to Locate “Up”
- Recipe: Using Acceleration to Move Onscreen Objects
- Summary
-
10. Connecting to Services
- Recipe: Adding Custom Settings Bundles
- Recipe: Subscribing Applications to Custom URL Schemes
- Recipe: Checking Your Network Status
- Recipe: Interacting with iPhone Databases
- Recipe: Converting XML into Trees
- Recipe: Storing and Retrieving Keychain Items
- Sending and Receiving Files
- Recipe: Building a Simple Web-Based Server
- Push Notifications
- Summary
- 11. One More Thing: Programming Cover Flow
Product information
- Title: The iPhone™ Developer’s Cookbook: Building Applications with the iPhone SDK
- Author(s):
- Release date: October 2008
- Publisher(s): Addison-Wesley Professional
- ISBN: 9780321591180
You might also like
book
Beginning iPhone 4 Development: Exploring the iOS SDK
Beginning iPhone 4 Development is here! The authors of the bestselling Beginning iPhone 3 Development are …
book
iPhone Application Development for iOS 4: Visual QuickStart Guide
Visual QuickStart Guides, designed in an attractive tutorial and reference format, are the quickest, easiest, and …
book
iOS 4 in Action
NEWER EDITION AVAILABLE iOS 7 in Action is now available. An eBook of this older edition …
video
iPhone Application Development for iOS 4: Video QuickStart Guide
iPhone Application Development for iOS 4: Video QuickStart Guide,presented by Tim Martin, highlights the important development …