Synopses & Reviews
Get the hands-on experience you need to program for the iPhone and iPod Touch. With this easy-to-follow guide, you'll build several sample applications by learning how to use Xcode tools, the Objective-C programming language, and the core frameworks. Before you know it, you'll not only have the skills to develop your own apps, you'll know how to sail through the process of submitting apps to the iTunes App Store.
Whether you're a developer new to Mac programming or an experienced Mac developer ready to tackle the iPhone and iPod Touch, Learning iPhone Programming will give you a head start on building market-ready iPhone apps.
- Start using Xcode right away, and learn how to work with Interface Builder
- Take advantage of model-view-controller (MVC) architecture with Objective-C
- Build a data-entry interface, and learn how to parse and store the data you receive
- Solve typical problems while building a variety of challenging sample apps
- Understand the demands and details of App Store and ad hoc distribution
- Use iPhone's accelerometer, proximity sensor, GPS, digital compass, and camera
- Integrate your app with iPhone's preference pane, media playback, and more
For those who want to start programming for the iPhone or iPod Touch, this book offers an easy-to-follow guide. Learn about the Xcode suite of tools, the Objective-C programming language, and the core frameworks by writing sample apps.
About the Author
Alasdair Allan is a senior research fellow in Astronomy at the University of Exeter. As part of his work there he is building a distributed peer-to-peer network of telescopes which, acting autonomously, will reactively schedule observations of time-critical events. On the side, Alasdair runs a small technology consulting business writing bespoke software and building open hardware, and is currently developing a series of iPhone applications to monitor and manage cloud based services and distributed sensor networks.
Table of Contents
Preface; Who Should Read This Book?; What Should You Already Know?; What Will You Learn?; What's in This Book?; Conventions Used in This Book; Using Code Examples; How to Contact Us; Safari® Books Online; Acknowledgments; Chapter 1: Why Go Native?; 1.1 The Pros and Cons; 1.2 The Release Cycle; 1.3 Build It and They Will Come; Chapter 2: Becoming a Developer; 2.1 Registering As an iPhone Developer; 2.2 Enrolling in the iPhone Developer Program; 2.3 The Apple Developer Connection; 2.4 Installing the iPhone SDK; 2.5 Preparing Your iPhone or iPod touch; Chapter 3: Your First iPhone App; 3.1 Objective-C Basics; 3.2 Creating a Project; Chapter 4: Coding in Objective-C; 4.1 Declaring and Defining Classes; 4.2 Memory Management; 4.3 Fundamental iPhone Design Patterns; 4.4 Conclusion; Chapter 5: Table-View-Based Applications; 5.1 Simplifying the Template Classes; 5.2 Creating a Table View; 5.3 Building a Model; 5.4 Connecting the Controller to the Model; 5.5 Adding Navigation Controls to the Application; 5.6 Adding a City View; 5.7 Edit Mode; Chapter 6: Other View Controllers; 6.1 Utility Applications; 6.2 Tab Bar Applications; 6.3 Modal View Controllers; 6.4 The Image Picker View Controller; Chapter 7: Connecting to the Network; 7.1 Detecting Network Status; 7.2 Embedding a Web Browser in Your App; 7.3 Sending Email; 7.4 Getting Data from the Internet; Chapter 8: Handling Data; 8.1 Data Entry; 8.2 Parsing XML; 8.3 Parsing JSON; 8.4 Regular Expressions; 8.5 Storing Data; Chapter 9: Distributing Your Application; 9.1 Adding Missing Features; 9.2 Building and Signing; 9.3 Submitting to the App Store; 9.4 Reasons for Rejection; Chapter 10: Using Sensors; 10.1 Hardware Support; 10.2 Using the Camera; 10.3 The Core Location Framework; 10.4 Using the Accelerometer; 10.5 Using the Digital Compass; 10.6 Accessing the Proximity Sensor; 10.7 Using Vibration; Chapter 11: Geolocation and Mapping; 11.1 User Location; 11.2 Annotating Maps; Chapter 12: Integrating Your Application; 12.1 Application Preferences; 12.2 Custom URL Schemes; 12.3 Media Playback; 12.4 Using the Address Book; Chapter 13: Other Native Platforms; 13.1 PhoneGap; 13.2 MonoTouch; Chapter 14: Going Further; 14.1 Cocoa and Objective-C; 14.2 Web Applications; 14.3 Core Data; 14.4 Push Notifications; 14.5 In-App Purchase; 14.6 Core Animation; 14.7 Game Kit; 14.8 Writing Games; 14.9 Look and Feel; 14.10 Hardware Accessories; Colophon;