Question

How would I get the last modified date from ALAsset type video?

I tried with:

NSDate *date = [dateFormatter dateFromString:[[[[asset defaultRepresentation] metadata] objectForKey:@"{TIFF}"] objectForKey:@"DateTime"]];

but metadata is coming empty for a video.

Was it helpful?

Solution

In ALAsset Class reference there is no such property for Last updated date how ever there is a property for Created date

ALAsset* asset;
NSDate* date = [asset valueForProperty:ALAssetPropertyDate];
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top