【问题标题】:How to enumerate all photos on iOS 8 using ALAssetsLibrary如何使用 ALAssetsLibrary 枚举 iOS 8 上的所有照片
【发布时间】:2014-11-14 16:51:58
【问题描述】:

iOS 8 通过从 ALAssetsLibrary 枚举 API 中删除“相机胶卷”破坏了许多应用程序。我知道我可以使用新的照片框架获取所有照片。但是我的应用程序有很多代码取决于 ALAsset 相关类,我需要保持 iOS 7 支持。有没有办法在 iOS 8 上使用 ALAssetsLibary 枚举所有照片,而无需先枚举资产组?

【问题讨论】:

标签: ios ios8 photo alassetslibrary alasset


【解决方案1】:

Apple 刚刚发布了 8.0.1 并将其列为包含的修复程序。可能最好等待。

来自 8.0.1 发行说明: Fixes an issue that prevented some apps from accessing photos from the Photo Library

【讨论】:

  • 对我来说,iOS 8.0.2 让事情变得更糟。当通过 ALAssetsLibrary 接收时,“最近添加的”现在称为“照片”,其中包括一些照片应用程序中未包含的照片,并遗漏了一些其他照片。太好了!
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多