Cool feature to add for Camera that is EASY


#1

Joe,

Iā€™m having too much fun on this chapter. :slight_smile:

UIImagePickerController *imagePicker = [[UIImagePickerController alloc] init];

// set picker properties
[imagePicker setDelegate:self];
[imagePicker setAllowsEditing:YES];

Then change it to get the edited image and not the original photo in the call back event:

// Get picked image from info dictionary
UIImage *image = [info objectForKey:UIImagePickerControllerEditedImage];   //UIImagePickerControllerOriginalImage];

So basically add one line and change the key to pull from the dictionary and get the ability to pan, zoom, crop the image just the way you want.

Fun stuff.

Ed