I want to get the image frm imagepickercontroller
.But my code doesn\'t have any effect
Here is the code..
- (void)imagePickerController:(UIImagePick
You can try this code to access an Image returned from the picker
- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info {
[picker dismissModalViewControllerAnimated:YES];
UIImage* originalImage = nil;
originalImage = [info objectForKey:UIImagePickerControllerEditedImage];
if(originalImage==nil)
{
originalImage = [info objectForKey:UIImagePickerControllerOriginalImage];
}
if(originalImage==nil)
{
originalImage = [info objectForKey:UIImagePickerControllerCropRect];
}
//At this point you have the selected image in originalImage
[self saveImageToDocumentDirectory:originalImage];
}