问题描述
我正在使用localIdentifier来获取PHAsset,并观察到PHAsset ModifyDate每次都在更改
let options = PHFetchOptions()
options.sortDescriptors = [NSSortDescriptor(key: "creationDate",ascending: true)]
if let asset = PHAsset.fetchAssets(withLocalIdentifiers: [localIdentifier],options: options).lastObject {
print("modificationDate = \(asset.modificationDate)")
}
修改日期始终是当前日期。 我不知道为什么只获取PHAsset时会得到这样的修改日期。
是否有人有任何想法或参考来获取实际的PHAsset修改日期。
我需要根据修改时间在我的应用中备份媒体。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)