How to enumerate all photos on iOS 8 using ALAssetsLibrary

廉价感情. 提交于 2020-01-02 03:13:10

问题


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?


回答1:


Apple just released 8.0.1 and listed this as a included fix. Might just be best to wait for that.

From the 8.0.1 release notes: Fixes an issue that prevented some apps from accessing photos from the Photo Library



来源:https://stackoverflow.com/questions/25945002/how-to-enumerate-all-photos-on-ios-8-using-alassetslibrary

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!