iPhone Camera Programming Exercises

Product Description
Here you will find interesting exercises that show you, step-by-step, how to write programs that use the iPhone’s built-in camera.

The book provides you with several unique benefits:

Unique Benefit #1: Written from scratch for the new iPhone OS 3.1 Camera Interface.

While other books cover the previous, less functional camera interface that was in iPhone OS 2.x and 3.0, this book focuses 100% on the new iPhone OS 3.1 Camera Interface.

Unique Benefit #2: Step-by-Step Exercises.

If you are a beginner, you can follow every step, and learn every key skill. If you are an expert, you can skip directly to those steps you need to refresh or enhanced your existing skills.

Unique Benefit #3: As few words as possible, but no fewer.

While some books focus on writing as many words as possible, the goal here is to write only the key words that you need to quickly learn and master iPhone programming skills.

The iPhone OS 3.1 technologies that you will use in these exercises include:

UIImagePickerController

This class handles the details of displaying a camera, a photo library, or a photo album. While this class existed in previous versions of iPhone OS, additional functionality was added in iPhone OS 3.1 to provide a camera overlay view and program control of taking a photo.

UIImagePickerControllerDelegate

This protocol provides two methods for notifying you of the user’s selection (cancel or select photo) when using the UIImagePickerController. As with the class, this protocol has additional functionality in iPhone OS 3.1.

UIImage

This class represents the image taken by the camera.

As you work through these exercises, here are some of the skills that you will learn.

* How to display the default camera.
* How to override the default camera with your own custom view.
* How to scale the camera image.
* How to save the camera image.
* How to take control of the camera shutter button, pressing the button under program control.

Contents

Introduction

Exercise 1. Create New Xcode Project

Exercise 2. Determine Photo Source Type

Exercise 3. Display Camera

Exercise 4. Respond To Camera Buttons

Exercise 5. Add Move and Scale (Editing)

Exercise 6. Save Images To Photo Album

Exercise 7. Add Camera Overlay View – Part 1

Exercise 8. Add Camera Overlay View – Part 2

Exercise 9. Hide Camera Buttons

Exercise 10. Program Control of Shutter

UIImagePickerController Reference

UIImagePickerControllerDelegate Reference

UIImageWriteToSavedPhotosAlbum() Reference

Rating:
Sale Price:
Total Costumer Reviews:(1)

iPhone Camera Programming Exercises

0saves
If you enjoyed this post, please consider leaving a comment or subscribing to the RSS feed to have future articles delivered to your feed reader.
September 7, 2010 Posted Under iphone

One Response to “iPhone Camera Programming Exercises”

  1. DenVogel says:

    * These exercises saved me a lot of time. Well worth the $4.95 price

    * A great start to getting familiar with the new and changed camera features for iPhone OS v3.x.

    * Norman comments pretty much every line of code and include several NSLog statements. Really helped me learn what is going on, instead of just copying a bunch of lines of code.

    NOTE: You don’t have to have a Kindle to use this. You can download the Amazon Kindle app for iPhone and iPod touch and view it on your handheld. The screen is a little small for viewing code, but the reader is free and it works! I can’t find a way to copy / paste code, so you will need to type the lines manually. This appears to be a limitation of the Kindle reader, not Norman’s offering.
    Rating:

Leave a Reply

  • Blogroll