How can I get image created date time or last modified date time from iOS Photos (like camera roll)?

后端 未结 1 1619
甜味超标
甜味超标 2021-01-01 04:10

I am a new guy to iOS. Recently, I am developing an iOS application need to check image (in iOS Photos) created date time and modified date time to sort the

相关标签:
1条回答
  • 2021-01-01 04:46

    You can retrieve the creation date of the asset using the ALAssetPropertyDate property:

    ALAsset* asset;
    ...
    NSDate* date = [asset valueForProperty:ALAssetPropertyDate];
    

    I'm not sure of a method to retrieve the last modified date.

    0 讨论(0)
提交回复
热议问题