Mukesh
Mukesh

Reputation: 515

How to pass imageView as source to QuickLook preview

After picking an image from UIImagePickerController, I am trying to pass that imageView as a source to QuickLook preview which requires URL as a data source. I am not interested to write the image into any document storage to create a URL, which will create a copy image again in the disk.

Note: I am using a scanner SDK where it will return a UIImage as a result, so i need to use that UIImage for QuickLook preview.

Any suggestion to achieve this?

Upvotes: 1

Views: 454

Answers (1)

Akshaykalbhor
Akshaykalbhor

Reputation: 21

You might want to checkout this method (https://developer.apple.com/documentation/uikit/uiimagepickercontrollerdelegate/1619126-imagepickercontroller). One of the arguments to this method is an 'info' dictionary which can be used to get the image URL. Use the key 'imageURL'.

Upvotes: 2

Related Questions