views:

77

answers:

1

How to give images in photo library and camera as source to UIImage

/* On button click i want to save image */
myImage = /*What i have to give here to take camera or library images*/
UIImageWriteToSavedPhotosAlbum(myImage, self,
    @selector(image:didFinishSavingWithError:contextInfo:), nil);
A: 

You need to use the UIImagePickerController object. It will present the modal view that allows either taking a picture or selecting an image from the device library. You should also become familiar with the UIImagePickerControllerDelegate protocol. With these two, it is easy to interact with both the camera and on-device library.

Chip Coons