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

发布于 2024-09-29 01:51:49 字数 154 浏览 3 评论 0原文

我正在开发一个应用程序,我需要在其中显示用户选择的相册的幻灯片, UIImagePickerController 仅返回选定的图像。我想要所选图像的所有上一张和下一张图像,是否可以使用 UIImagePickerController,如果没有,是否有其他方法可以做到这一点。 提前致谢, 萨蒂什

I am working on one application in which i need to show slide show of the user selected photo album,
UIImagePickerController only returns the selected image. I want all previous and next images of the selected image, is it possible with UIImagePickerController and if not is there any other way that i can do it.
Thanks in advance,
Satish

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

梦归所梦 2024-10-06 01:51:49

您必须创建一个自定义选择器来选择相册而不是图像。您需要使用 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文