Graphics Programs Reference
In-Depth Information
(Don't worry about the third argument, completion: . We'll talk about it more in
Chapter 13 . )
You can build and run the application now. Select a BNRItem to see its details and then
tap the camera button on the UIToolbar . UIImagePickerController 's interface
will appear on the screen ( Figure 12.9 ) , and you can take a picture (or choose an existing
image if you don't have a camera). Tapping the Use Photo button dismisses the
UIImagePickerController .
(If you are working on the simulator, there won't be any images available. However, you
can open Safari in the simulator, navigate to a page with an image, and click and hold on
that image. When the action sheet appears, choose Save Image . This image will be saved
in the simulator's photo library. But, the simulator can be flaky, so you might have to try a
few different images before one actually saves.)
Figure 12.9 UIImagePickerController preview interface
 
Search WWH ::




Custom Search