Issue with UIImagePickerControllerEditedImage

前端 未结 4 1804
野的像风
野的像风 2021-01-01 02:32

I need edit my Images before they import to the app but after editing the image reduces some quality how can avoid this ?

- (void) imagePickerController:(UI         


        
4条回答
  •  借酒劲吻你
    2021-01-01 02:54

    - (void)imagePickerController:(UIImagePickerController *)picker 
                          didFinishPickingMediaWithInfo:(NSDictionary *)info {
    
      [picker dismissModalViewControllerAnimated:YES];
      [picker release];
    
              // Edited image works great (if you allowed editing)
      myUIImageView.image = [info objectForKey:UIImagePickerControllerEditedImage];
              // AND the original image works great
      myUIImageView.image = [info objectForKey:UIImagePickerControllerOriginalImage];
              // AND do whatever you want with it, (NSDictionary *)info is fine now
      UIImage *myImage = [info objectForKey:UIImagePickerControllerEditedImage];
    }
    

    You can edit ur image. Try this it may work for your application.Thanks!

提交回复
热议问题