Table of Contents

 

Copyright

Brief Table of Contents

Table of Contents

Preface

Acknowledgments

About this Book

About the Cover Illustration

Chapter 1. Barcodes, iOS, and you

1.1. The evolution of barcodes

1.1.1. One dimension: laser

1.1.2. Two dimensions: CCD

1.1.3. Versatility is winning

1.1.4. Where are the bars?

1.2. Barcode symbologies in iOS

1.2.1. 1D barcodes in iOS

1.2.2. 2D barcodes in iOS

1.2.3. So many choices: which barcode should I use?

1.3. Summary

Chapter 2. Media capture with AV Foundation

2.1. Introducing AV Foundation

2.2. Building a camera app

2.2.1. AV Foundation setup

2.2.2. Building the camera UI

2.2.3. Selecting capture devices

2.2.4. Media capture session

2.2.5. Showing live video preview

2.2.6. Authorizing camera access (or not)

2.2.7. Toggling the video light

2.2.8. Taking pictures to the camera roll

2.2.9. Supporting rotation of device and UI

2.2.10. Switching between camera devices

2.2.11. Implementing autofocus and tap-to-focus

2.3. Summary

Chapter 3. Scanning barcodes

3.1. Metadata detection in AV Foundation

3.2. Building a QR Code scanner

3.2.1. Reusing camera code

3.2.2. Creating and configuring the metadata output

3.2.3. Wiring up the metadata objects��� delegate

3.2.4. Creating a barcode scan delegate

3.2.5. Marking detected barcodes on preview

3.2.6. Building an optimal scanning UI

3.2.7. Tweaking capture device settings

3.2.8. Opening a scanned web address in Mobile Safari

3.3. Summary

4.1. Barcodes in Passbook