I've got the code for sharing.
-(void) Imagepickercontroller: (Uiimagepickercontroller *) Picker Didfinishpickingmediawithinfo: (NSDictionary *) info {
if (Picker.sourcetype = = uiimagepickercontrollersourcetypephotolibrary) {
UIImage *image= [info objectforkey:uiimagepickercontrolleroriginalimage];
Nsurl *asseturl = [info objectforkey:uiimagepickercontrollerreferenceurl];
Alassetslibrary *library = [[Alassetslibrary alloc] init];
[Library Assetforurl:asseturl
resultblock:^ (Alasset *asset) {
nsdictionary* imagemetadata = [[Nsmutabledictionary alloc] initWithDictionary:asset.defaultRepresentation.metadata] ;
Nsdictionary *gpsdict=[imagemetadata Objectforkey: (nsstring*) kcgimagepropertygpsdictionary];
NSLog (@ "%@", gpsdict);
NSLog (@ "%@", imagemetadata);
/* Gpsdict inside that is the photo of the GPS information, specifically can output to see * * *
}
failureblock:^ (Nserror *error) {
}];
}
}
Call the album photo to get the photo's time taken.