Testing the App
Deploy the application to an iOS device. Tap on the button to start scanning. When a barcode is recognized, the window closes and the scanned barcode is displayed in the Label view (see Figure 8).
Figure 8 Testing the application on an iPhone.
There you have it! The iOS APIs are becoming feature-rich. What was once a third-party job can now be easily fulfilled using the APIs provided by Apple.