Professional iPhone and iPad Application DevelopmentISBN: 978-0-470-87819-4
Paperback
600 pages
November 2010
This title is out-of-print and not currently available for purchase from this site.
|
INTRODUCTION xxiii
CHAPTER 1: NAVIGATION 1
Navigation Stack 2
The Navigation Bar 2
A Simple Navigation Bar 3
The Toolbar 17
A Simple Toolbar 18
The Tab Bar 26
A Simple Tab Bar 26
Summary 51
CHAPTER 2: ALERTS, ACTION SHEETS, AND MODAL VIEWS 53
Alerts 53
A Simple AlertView for the iPhone-iPod Touch and iPad 54
Action Sheets 66
An Action Sheet for the iPhone-iPod Touch 67
An Action Sheet for the iPad 80
Modal Views 95
A Modal View for the iPhone and iPod Touch 95
A Modal View for the iPad 106
Summary 119
CHAPTER 3: CUSTOM TABLE VIEWS 121
Table Views 121
A Custom Table View Application 122
Summary 135
CHAPTER 4: THE SPLIT VIEW 137
The UISplitViewController Class 137
A Simple Split View Application 138
Summary 158
CHAPTER 5: TOUCH EVENTS 159
Touch Event Handling 159
A Simple Touch Handler 162
A Simple Gesture Recognizer 174
Summary 197
CHAPTER 6: NOTIFICATION PROCESSING 199
NSNotifications Concepts 200
A Local Named Notification 201
A Local Keyboard Notification 211
Summary 225
CHAPTER 7: NETWORKING CONCEPTS 227
Communication over a Network 228
A Simple Network Browser 230
Peer-to-Peer Device Communications 244
Summary 262
CHAPTER 8: MULTIMEDIA 263
Frameworks for Audio 263
Frameworks for Video 265
Playing Audio from the iPod Library 265
An Application That Plays Video from the iPod Library 291
Summary 312
CHAPTER 9: APPLICATION PREFERENCES 313
Application Configuration 313
Setting Simple Preferences 315
Creating a Child Pane Preference Hierarchy 325
Summary 338
CHAPTER 10: DATA STORAGE 339
Property Lists 339
Core Data 341
The Common Premise for Data Storage 343
Summary 394
CHAPTER 11: THE PASTEBOARD 395
Pasteboard Concepts 396
Cutting and Pasting Text 398
Cutting and Pasting Images 407
Creating Custom Menus for the iPad 416
Summary 427
CHAPTER 12: UNIT TESTING 429
Setting Up the Environment 429
A Simple Unit Test 430
Unit Test Creation Steps: A Simple Unit Test 446
Summary 452
CHAPTER 13: PERFORMANCE TUNING AND OPTIMIZATION 453
Profiling 454
A Simple Memory Leak Test 455
Summary 468
CHAPTER 14: INTEGRATING IADS 469
Joining the iAd Network 469
Preparing Your Application to Use the iAd Network 470
A Simple Application Using iAds 471
Summary 479
CHAPTER 15: MULTITASKING 481
Multitasking Services 481
An Application That Multitasks Audio 483
Summary 503
APPENDIX A: YOUR INITIAL APP FIRST STEPS 505
Xcode Project Builder 505
Interface Builder 512
Summary 514
APPENDIX B: IPHONE DEVELOPER CENTER 515
Resources for the iOS 4 SDK 515
iPhone Developer Program 518
iTunes Connect 520
News & Announcements 520
Summary 520
APPENDIX C: COCOA TOUCH STATIC LIBRARIES 521
Xcode Project Template 521
An Xcode Application Project 527
Summary 542
APPENDIX D: APPLE DEVELOPER RESOURCES 543
iPhone Developer Program 543
iTunes App Store 544
Application Distribution Procedures 545
iTunes Connect Developer Guide 545
INDEX 547