UIImagePickerController behavior changed in iOS9?

I'm developing an app that import video from Library and let users do some editing.


For picking a video I'm using UIImagePickerController and it was working perfectly on iOS8.

But in iOS9 it fails to import if the item is on iCloud and is not downloaded yet.


More specifically the result info dictionary doesn't contain UIImagePickerControllerMediaURL value.


Is it an intentional change? If so, what method is recommended instead?



Thanks.

Replies

Kinda solved by myself...


Even when UIImagePickerControllerMediaURL value is empty you'll still get UIImagePickerControllerReferenceURL value,

so I've added the codes to get PHAsset with UIImagePickerControllerReferenceURL and got the media data with PHImageManeger.

Hi Yokemura!

How did you solve this?

Could you please provide me with an example of how you got the video from the UIImagePickerControllerReferenceURL?