I want to allow users to take photos within the app I am developing, so I thought I can use UIImagePickerController, present the camera view, let the user simply snap the photo and then save it in Documents or whatever path makes sense to use.
What I am trying to understand is, when I take the photo can I tell the picker where to save the photo? I do not want the photo to show up in the standard photo app on my iPhone…
Any suggestion?
Thanks
In your delegate method
You will receive a dictionary called “info”, one of the keys is UIImagePickerControllerOriginalImage. The object for that key is a UIImage. You can save that to the documents directory. You probably want to convert it to a JPEG or PNG first. You could use this for PNG:
or this for JPG:
I assume you know how to construct jpgpath and pngpath.