I’m writing an application that allows users to upload photos from their camera roll and save them in the app. The only problem is that I’m not sure where to begin. I read over Apples documents on UIImageView, but that didn’t seem to help as much as it usually does. I was wondering if anyone can point me in the right direction of some sample code that does generally the same thing?
Thank you!
Well let’s clear things up first
Now let’s see how it actually comes together:
First you’ll want to create an UIImagePickerController, define the source of the images and set a delegate to handle the image that comes back. Something along these lines:
This will bring up the image picker to the user ( specifically a camera – you can play with the media types and sources – lookup the UIImagePickerController Reference to see what other options you have.
Now – you have to actually take care of the image you get from the user and that’s done through the delegate method implementation: