Domanda

I am working on an IOS code to pick image from camera roll and upload to server, but the problem is that the image resolution of the picked image is according to the phone screen resolution and not the original image resolution. For example the resolution picked for Iphone-3 is always 320 x 320, but I want to load image in original resolution. Thanks

È stato utile?

Soluzione

You will need this key in your dictionary: UIImagePickerControllerOriginalImage

So

- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info {
    UIImage *fullImage = [info objectForKey:UIImagePickerControllerOriginalImage];
}
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top