Chapter 6. Getting metadata for barcodes

This chapter covers

  • Modern networking with NSURLSession
  • Updating Core Data databases asynchronously
  • Presenting a barcode scanner modally, and using unwind segues
  • Calling RESTful web services
  • Unit testing web service wrappers

When you scan a barcode on a product, you end up with a GTIN (Global Trade Item Number). As an engineer, you might be marveling at the beauty of those digits, but your users will want more interesting benefits from having scanned the bars.

A traditional point-of-sale (POS) system has a local database mapping GTINs to products and their prices. But having a mobile barcode scanner in your pocket and the ability to retrieve product metadata over the internet gives you a leg ...

Get Barcodes with iOS now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.