Within my application I am using an UIImagePickerController which calls
- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info
on success. The thing is, i need the date at which the image was taken. If the user shot a new picture i can take the current date of course, but what can I do in case the user chose a picture from his camera roll or another saved picture?
You can use this code for photos and videos fetched from albums. info is second parameter in the mentioned delegate method.
As well, to make it work you need to include to project AssetsLibrary framework.
then
u have to get the "DateTime" key's value from that
iOS 11+, Swift 4+