如何使用ALAssetsLibrary枚举iOS 8上的所有照片 [英] How to enumerate all photos on iOS 8 using ALAssetsLibrary
问题描述
iOS 8通过从ALAssetsLibrary枚举API中删除Camera Roll来破坏了大量应用。我知道我可以使用新的Photos框架获取所有照片。但我的应用程序有很多代码,具体取决于ALAsset相关的类,我需要保持iOS 7支持。有没有办法在iOS 8上使用ALAssetsLibary枚举所有照片,而不首先枚举资产组?
iOS 8 broke lots of apps by removing "Camera Roll" from the ALAssetsLibrary enumerating API. I know I can get all photos using the new Photos framework. But my app has a lot of code depending on ALAsset related classes and I need to keep iOS 7 support. Is there a way to enumerate all photos using ALAssetsLibary on iOS 8, without enumerating asset group first?
推荐答案
Apple刚刚发布了8.0。 1并将其列为包含的修复程序。可能只是等待它。
Apple just released 8.0.1 and listed this as a included fix. Might just be best to wait for that.
从8.0.1发行说明:
修复了导致某些应用无法访问的问题访问照片库中的照片
From the 8.0.1 release notes:
Fixes an issue that prevented some apps from accessing photos from the Photo Library
这篇关于如何使用ALAssetsLibrary枚举iOS 8上的所有照片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!