What is the best way to use the iphone camera in your app?
I would want to allow the user to take an image, then either retake or save.
Where do the pics get saved to? Can I assign a name to a captured image?
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You need to use
UIImagePickerController. See Apple’s documentation for information on how to use it: http://developer.apple.com/iphone/library/documentation/uikit/reference/UIImagePickerController_Class/UIImagePickerController/UIImagePickerController.htmlAs for where the pictures get saved: They don’t get saved anywhere automatically. You have to implement the
UIImagePickerControllerDelegatemethodimagePickerController:didFinishPickingMediaWithInfo:and then store theUIImageto wherever you want, with whatever file name you want, usingNSFileManagermethods.