Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私はiOSの新人です。最近、私はiOSアプリケーションを開発しており、(iOSフォトで)作成された日時と変更された日時をチェックして、これらの画像を時間で並べ替える必要があります。ALAssetsLibraryを使用してすべての画像を列挙しました。各画像の次の属性を取得できます:画像ファイル名、画像アセットURL(その中で、画像ファイル拡張子と一意のアセットIDを取得できます)。しかし、誰かが画像ファイルの作成日時と最終変更日時を取得する方法を教えてもらえますか?
どうもありがとう。
ALAssetPropertyDateプロパティを使用して、アセットの作成日を取得できます。
ALAsset* asset; ... NSDate* date = [asset valueForProperty:ALAssetPropertyDate];
最終更新日を取得する方法がわかりません。