Get last modified date from ALAsset (video) iOS Video

How can I get the last modified date from a video like ALAsset?

I tried:

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

but the metadata is empty for the video.

+4
source share
1 answer

In the ALASset class reference, there is no such property for the last updated date as there is ever a property for Creation Date

 ALAsset* asset; NSDate* date = [asset valueForProperty:ALAssetPropertyDate]; 
+4
source

Source: https://habr.com/ru/post/1479844/


All Articles