Barcodes with iOS: Bringing together the digital and physical worlds

Barcodes with iOS: Bringing together the digital and physical worlds

Language: English

Pages: 248

ISBN: 161729215X

Format: PDF / Kindle (mobi) / ePub


Summary

Barcodes with iOS is the first and only book that comprehensively addresses barcode technology for the iOS developer. It offers an introduction to commonly used formats, such as ISBN and UPC codes, and provides real-world examples that teach you how to integrate code scanning and generation into your apps. This book consolidates information about applicable Apple frameworks in one place so you can quickly add native barcode support to your existing enterprise apps or start building new apps that help bring together the physical and digital worlds.

Purchase of the print book includes a free eBook in PDF, Kindle, and ePub formats from Manning Publications.

About the Technology

Barcodes are a universal way to track and share information, appearing on everything from cereal boxes to shop windows. Starting with iOS 7, Apple has added native features for building apps that scan, display, and print barcodes, eliminating the need for third-party libraries.

About the Book

Barcodes with iOS teaches you how to effectively use barcodes in your iOS apps. You'll master Apple's new barcode frameworks while you explore real-world examples that integrate code scanning and generation and metadata retrieval into your apps. Along the way, you'll pick up numerous best practices for bringing together the physical and digital worlds.

This book is written for readers with a working knowledge of Objective-C and iOS app development.

What's Inside

  • Learn about all barcode formats supported by iOS
  • Native barcode scanning with AV Foundation
  • Using Core Image and BarCodeKit to produce a wide range of barcodes
  • Printing to sheets and labels with AirPrint
  • Retrieving metadata for products with NSURLSession and NSURLProtocol
  • Harnessing context information from Core Location and iBeacons

About the Author

Oliver Drobnik is an independent consultant specializing in custom iOS and Mac development.

Table of Contents

  1. Barcodes, iOS, and you 1
  2. Media capture with AV Foundation 18
  3. Scanning barcodes 48
  4. Passbook, Apple's digital wallet 70
  5. Generating barcodes 97
  6. Getting metadata for barcodes 133
  7. Putting barcodes in context 172

Appendices

  1. History of the UPC 205
  2. GTIN prefix ranges 212
  3. GS1-128 application identifiers 217

Decompiling Android

UDK iOS Game Development Beginners Guide

Parallel and Concurrent Programming in Haskell: Techniques for Multicore and Multithreaded Programming

Mastering Swift 2

Instant Pygame for Python Game Development How-to: Create Engaging and Fun Games with Pygame, Python's Game Development Library

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

which you can think of as the camera hardware itself. In order to use it with your system, you have to connect it somehow, like you’d connect a physical camera via a USB cable. The job of the cable is taken on by AVCaptureDeviceInput (see figure 2.7). To create a device input for the default camera, you initialize it with the device. The following code should also be added to _setupCamera: Variable receives a reference to error object if there’s a problem NSError *error; _videoInput =

doesn’t have the ability to get the certificate from the OS X keychain where you stored it in the previous Figure 4.5 Your certificate is ready. Producing digital passes for your users Figure 4.6 77 Finished certificate in keychain section, so you first need to export the certificate into a file and convert it into a format that the utility can work with. OpenSSL OpenSSL is a collaborative project developing a robust, commercial-grade, full-featured and open source toolkit. It provides a

inputCorrectionLevel parameter specifies the error-correction level for output QR Codes. If you omit this parameter, the generator defaults to the 15% level (M). All the error-correction levels mentioned in section 5.1.2 are available for this parameter. The CIImage that comes out of the generator is not yet usable with UIKit. It first needs to be rendered and scaled. SCALING QR CODES The generator creates an image with a module size of 1 pixel. There’s no parameter to increase the module size

Aborting the entire application is frowned on in real-life apps. If the user is already authorized, then you can search Discogs and update the new Release object right away. If not, this will have to wait until after successful completion of the authorization flow: Create a new Release object and fill in barcode Check if authentication is still required - (void)_handleScannedCode:(NSString *)code { Release *release = [self _insertNewReleaseWithGTIN:code]; if ([_discogs.oauthClient

stress for you as a developer. You don’t want unit tests to fail just because the environment changed. NOTE Testing how a unit interacts with the environment is a different kind of test: an integration test. This might also be an interesting thing to test, but in this section we’re exclusively looking at ensuring that a unit is and will keep working flawlessly. The actual network operation happens deep under the hood of Apple’s URL-loading system. Even with modern networking via NSURLSession,

Download sample

Download

About admin