Book description
Everything you need to create top-notch applications for the iPhone and iPad
Developers have demanded an advanced guide to using the very latest version of the iPhone and iPad SDK to develop applications-and this book answers that call! Packed with over twenty complete standalone applications that are designed to be recreated, rebuilt, and reused by the professional developer, this resource delves into the increasingly popular world of application development and presents step-by-step guidance for creating superior apps for the iPhone and iPad. You'll explore the many developer tools and learn how to use them and you'll also discover how to apply the techniques learned, to real world situations. With coverage of the latest version of the iPhone and iPad SDK and the quantity of standalone applications, this book will serve as a tremendous go-to reference in the future.
Coverage includes:
Navigation
Alerts, Action Sheets, and Modal Views
Custom Table Views
The Split View
Touch Events
Notification Processing
Networking Concepts
Multimedia
Application Preferences
Data Storage
The Pasteboard
Unit Testing
Performance Tuning and Optimization
Integrating iAds
Multitasking
Professional iPhone and iPad Application Development is the only advanced-level resource you need for creating top-quality applications!
Table of contents
- Copyright
- ABOUT THE AUTHOR
- ABOUT THE TECHNICAL EDITOR
- CREDITS
- ACKNOWLEDGMENTS
- INTRODUCTION
-
1. Navigation
- 1.1. NAVIGATION STACK
- 1.2. THE NAVIGATION BAR
-
1.3. A SIMPLE NAVIGATION BAR
-
1.3.1. Development Steps: A Simple Navigation Bar
-
1.3.1.1. Source Code Listings for the A Simple Navigation Bar Application
- 1.3.1.1.1. RootViewController.h Modifications to the Template
- 1.3.1.1.2. RootViewController.m Modifications to the Template
- 1.3.1.1.3. RootDetailViewController.h Modifications to the Template
- 1.3.1.1.4. RootDetailViewController.m Modifications to the Template
- 1.3.1.1.5. DetailViewController.h Modifications to the Template
- 1.3.1.1.6. DetailViewController.m Modifications to the Template
-
1.3.1.1. Source Code Listings for the A Simple Navigation Bar Application
- 1.3.2. Test Your Application
-
1.3.1. Development Steps: A Simple Navigation Bar
- 1.4. THE TOOLBAR
- 1.5. A SIMPLE TOOLBAR
- 1.6. THE TAB BAR
-
1.7. A SIMPLE TAB BAR
- 1.7.1. Development Steps: A Simple Tab Bar
-
1.7.2. Designing the View Controllers
- 1.7.2.1. The First View Controller
- 1.7.2.2. The Second View Controller
- 1.7.2.3. The Third View Controller
-
1.7.2.4. Source Code Listings for A Simple Tab Bar
- 1.7.2.4.1. FirstViewController.h Modifications to the Template
- 1.7.2.4.2. FirstViewController.m Modifications to the Template
- 1.7.2.4.3. SecondViewController.h Modifications to the Template
- 1.7.2.4.4. SecondViewController.m Modifications to the Template
- 1.7.2.4.5. ThirdViewController.h Modifications to the Template
- 1.7.2.4.6. ThirdViewController.m Modifications to the Template
- 1.7.2.4.7. Transaction.h Modifications to the Template
- 1.7.2.4.8. Transaction.m Modifications to the Template
- 1.7.2.4.9. PropertyList.h Modifications to the Template
- 1.7.2.4.10. PropertyList.m Modifications to the Template
- 1.7.3. Test Your Application
- 1.8. SUMMARY
-
2. Alerts, Action Sheets, and Modal Views
- 2.1. ALERTS
- 2.2. A SIMPLE ALERTVIEW FOR THE IPHONE-IPOD TOUCH AND IPAD
- 2.3. ACTION SHEETS
- 2.4. AN ACTION SHEET FOR THE IPHONE-IPOD TOUCH
- 2.5. AN ACTION SHEET FOR THE IPAD
- 2.6. MODAL VIEWS
- 2.7. A MODAL VIEW FOR THE IPHONE AND IPOD TOUCH
- 2.8. A MODAL VIEW FOR THE IPAD
- 2.9. SUMMARY
-
3. Custom Table Views
- 3.1. TABLE VIEWS
-
3.2. A CUSTOM TABLE VIEW APPLICATION
-
3.2.1. Development Steps: A Custom Table View Application
-
3.2.1.1. Source Code Listings for a Custom Table View Application
- 3.2.1.1.1. RootViewController.h Modifications to the Template
- 3.2.1.1.2. RotViewController.m Modifications to the Template
- 3.2.1.1.3. PropertyList.h Modifications to the Template
- 3.2.1.1.4. PropertyList.m Modifications to the Template
- 3.2.1.1.5. CustomTableViewCell.h Modifications to the Template
- 3.2.1.1.6. CustomTableViewCell.m Modifications to the Template
-
3.2.1.1. Source Code Listings for a Custom Table View Application
- 3.2.2. Creating the Contacts.plist Property List File
- 3.2.3. Test Your Application
-
3.2.1. Development Steps: A Custom Table View Application
- 3.3. SUMMARY
-
4. The Split View
- 4.1. THE UISPLITVIEWCONTROLLER CLASS
-
4.2. A SIMPLE SPLIT VIEW APPLICATION
- 4.2.1. Development Steps: A Simple Split View Application for the iPad
-
4.2.2. Creating the DataSource.plist Property List File
-
4.2.2.1. Source Code Listings for A Simple Split View Application
- 4.2.2.1.1. RootViewController.h Modifications to the Template
- 4.2.2.1.2. RootViewController.m Modifications to the Template
- 4.2.2.1.3. DetailViewController.h Modifications to the Template
- 4.2.2.1.4. DetailViewController.m Modifications to the Template
- 4.2.2.1.5. PropertyList.h Modifications to the Template
- 4.2.2.1.6. PropertyList.m Modifications to the Template
-
4.2.2.1. Source Code Listings for A Simple Split View Application
- 4.2.3. Test Your Application
- 4.3. SUMMARY
- 5. Touch Events
- 6. Notification Processing
-
7. Networking Concepts
- 7.1. COMMUNICATION OVER A NETWORK
- 7.2. A SIMPLE NETWORK BROWSER
- 7.3. PEER-TO-PEER DEVICE COMMUNICATIONS
- 7.4. SUMMARY
-
8. Multimedia
- 8.1. FRAMEWORKS FOR AUDIO
- 8.2. FRAMEWORKS FOR VIDEO
- 8.3. PLAYING AUDIO FROM THE IPOD LIBRARY
-
8.4. AN APPLICATION THAT PLAYS VIDEO FROM THE IPOD LIBRARY
-
8.4.1. Development Steps: An Application That Plays Video from the iPod Library
-
8.4.1.1. Source Code Listings for an Application That Plays Video from the iPod Library
- 8.4.1.1.1. iPodLibraryMoviePlayerAppDelegate.m Modifications to the Template
- 8.4.1.1.2. iPodLibraryMoviePlayerViewController.h Modifications to the Template
- 8.4.1.1.3. iPodLibraryMoviePlayerViewController.m Modifications to the Template
- 8.4.1.1.4. MediaPlaybackViewController.h Modifications to the Template
- 8.4.1.1.5. MediaPlaybackViewController.m Modifications to the Template
- 8.4.1.1.6. MediaPlaybackView.h Modifications to the Template
- 8.4.1.1.7. MediaPlaybackView.m Modifications to the Template
- 8.4.1.1.8. iPodLibrary.h Modifications to the Template
- 8.4.1.1.9. iPodLibrary.m Modifications to the Template
-
8.4.1.1. Source Code Listings for an Application That Plays Video from the iPod Library
- 8.4.2. Test Your Application
-
8.4.1. Development Steps: An Application That Plays Video from the iPod Library
- 8.5. SUMMARY
- 9. Application Preferences
-
10. Data Storage
- 10.1. PROPERTY LISTS
- 10.2. CORE DATA
-
10.3. THE COMMON PREMISE FOR DATA STORAGE
-
10.3.1. Development Steps: A Simple Application Using Property Lists
-
10.3.1.1. Source Code Listings for a Simple Application Using Property Lists
- 10.3.1.1.1. PersonAddViewController.h Modifications to the Template
- 10.3.1.1.2. PersonAddViewController.m Modifications to the Template
- 10.3.1.1.3. RootViewController.h Modifications to the Template
- 10.3.1.1.4. RootViewController.m Modifications to the Template
- 10.3.1.1.5. PersonDetailViewController.h Modifications to the Template
- 10.3.1.1.6. PersonDetailViewController.m Modifications to the Template
- 10.3.1.1.7. Person.h Modifications to the Template
- 10.3.1.1.8. Person.m Modifications to the Template
- 10.3.1.1.9. Modifications to the PropertyList.h and PropertyList.m Templates
-
10.3.1.1. Source Code Listings for a Simple Application Using Property Lists
- 10.3.2. Test Your Application
-
10.3.3. Development Steps: A Simple Application Using Core Data
-
10.3.3.1. Source Code Listings for a Simple Application Using Core Data
- 10.3.3.1.1. PersonAddViewController.h Modifications to the Template
- 10.3.3.1.2. PersonAddViewController.m Modifications to the Template
- 10.3.3.1.3. RootViewController.h Modifications to the Template
- 10.3.3.1.4. RootViewController.m Modifications to the Template
- 10.3.3.1.5. PersonDetailViewController.h Modifications to the Template
- 10.3.3.1.6. PersonDetailViewController.m Modifications to the Template
- 10.3.3.1.7. Person.h Modifications to the Template
- 10.3.3.1.8. Person.m Modifications to the Template
- 10.3.3.2. Data Model Creation for A Simple Application Using Core Data
-
10.3.3.1. Source Code Listings for a Simple Application Using Core Data
- 10.3.4. Test Your Application
-
10.3.1. Development Steps: A Simple Application Using Property Lists
- 10.4. SUMMARY
-
11. The Pasteboard
- 11.1. PASTEBOARD CONCEPTS
- 11.2. CUTTING AND PASTING TEXT
- 11.3. CUTTING AND PASTING IMAGES
- 11.4. CREATING CUSTOM MENUS FOR THE IPAD
- 11.5. SUMMARY
-
12. Unit Testing
- 12.1. SETTING UP THE ENVIRONMENT
- 12.2. A SIMPLE UNIT TEST
- 12.3. UNIT TEST CREATION STEPS: A SIMPLE UNIT TEST
- 12.4. SUMMARY
- 13. Performance Tuning and Optimization
- 14. Integrating iAds
-
15. Multitasking
- 15.1. MULTITASKING SERVICES
-
15.2. AN APPLICATION THAT MULTITASKS AUDIO
-
15.2.1. Development Steps: An Application That Multitasks Audio
-
15.2.1.1. Source Code Listings for an Application That Multitasks Audio
- 15.2.1.1.1. RootViewController.h Modifications to the Template
- 15.2.1.1.2. RootViewController.m Modifications to the Template
- 15.2.1.1.3. MusicPlayerViewController.h Modifications to the Template
- 15.2.1.1.4. MusicPlayerViewController.m Modifications to the Template
- 15.2.1.1.5. iPodLibrary.h Modifications to the Template
- 15.2.1.1.6. iPodLibrary.m Modifications to the Template
-
15.2.1.1. Source Code Listings for an Application That Multitasks Audio
- 15.2.2. Test Your Application
-
15.2.1. Development Steps: An Application That Multitasks Audio
- 15.3. SUMMARY
- A. Your Initial App — First Steps
- B. iPhone Developer Center
-
C. Cocoa Touch Static Libraries
- C.1. XCODE PROJECT TEMPLATE
-
C.2. AN XCODE APPLICATION PROJECT
- C.2.1. Creating Your New Application
- C.2.2. Adding the Library to the New Project
- C.2.3. Adding Library Headers to the App Project
- C.2.4. Designing the App User Interface
-
C.2.5. Adding Source Code Using the Library Classes
- C.2.5.1. RootVewController.h Modifications to the Template
- C.2.5.2. RootVewController.m Modifications to the Template
- C.2.5.3. PersonAddViewController.h Modifications to the Template
- C.2.5.4. PersonAddViewController.m Modifications to the Template
- C.2.5.5. PersonDetailViewController.h Modifications to the Template
- C.2.5.6. PersonDetailViewController.m Modifications to the Template
- C.2.6. Test Your Application
- C.3. SUMMARY
- D. Apple Developer Resources
Product information
- Title: Professional iPhone® and iPad™ Application Development
- Author(s):
- Release date: November 2010
- Publisher(s): Wrox
- ISBN: 9780470878194
You might also like
book
Cheerlead for Employee Enthusiasm: For an Engaged and Productive Workforce
This Element is an excerpt from 17 Rules Successful Companies Use to Attract and Keep Top …
audiobook
Leading Transformation
Leaders know that their job is to transform their organizations to keep pace with technology and …
book
Mastering Xamarin.Forms - Third Edition
New edition of the bestselling guide to building an effective mobile app architecture with Xamarin.Forms 4 …
book
Sams Teach Yourself Java™ in 24 Hours, Sixth Edition
Sams Teach Yourself Java in 24 Hours, Sixth Edition Covering Java 7 and Android Development In …