且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

使用应用程序访问iPhone中用户相册的所有照片

更新时间:2023-12-01 18:47:22

您必须创建一个自定义选择器来选择相册而不是图像.您将要使用ALAssetLibrary通过enumerateGroupsWithTypes:usingBlock:failureBlock获取相册列表,然后在组调用enumerateAssetsUsingBlock:获取单个图像.

You'll have to create a custom picker to select an album instead of an image. You'll want to use ALAssetLibrary to get a list of albums via enumerateGroupsWithTypes:usingBlock:failureBlock and then on the group call enumerateAssetsUsingBlock: to get the individual images.