March 2014
Intermediate to advanced
672 pages
40h 11m
English
Save a snapped image (or any UIImage instance, actually) to the photo album by calling UIImageWriteToSavedPhotosAlbum(). This function takes four arguments. The first is the image to save. The second and third arguments specify a callback target and selector, typically your primary view controller and image:didFinishSavingWithError:contextInfo:. The fourth argument is an optional context pointer. Whatever selector you use, it must take three arguments: an image, an error, and a pointer to the passed context information.
Recipe 8-2 uses the UIImageWriteToSavedPhotosAlbum() function to demonstrate how to snap a new image, allow user edits, and then save the image to the photo album.
Recipe 8-2 Snapping Pictures ...
Read now
Unlock full access