UIImagepickercontroller:是否可以更改相机胶卷中图像的排序顺序?

发布于 2024-09-28 01:59:16 字数 132 浏览 0 评论 0原文

基本上,如果用户不必滚动到相机胶卷的最底部来获取最新的照片,我正在开发的应用程序会少很多痛苦,我希望最新的照片位于顶部,这不是吗无论如何有意义吗?不知道为什么苹果会这样设计,或者我只是没有意识到一些事情。

谢谢尼克

Basically the app im working on would be a lot less of a pain if users didn't have to scroll to the very bottom of their camera roll to get their most recent photos, I want the most recent at the top, wouldn't this make sense anyway? Not sure why apple designed it this way, or if im just not realizing something.

Thanks

nick

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

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

发布评论

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

评论(3

娇纵 2024-10-05 01:59:16

如果您不介意添加从相册列表中选择相机胶卷的额外步骤,您可以尝试将源类型从 SavedPhotoAlbums 更改为 PhotoLibrary:

imagePickerController.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;

选择所需的相册后,下一个照片选择视图将在底部显示最新的图像。

If you don't mind adding an extra step of selecting the camera roll from an album list you can try changing your sourceType from SavedPhotoAlbums to PhotoLibrary:

imagePickerController.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;

After selecting the desired album, the next photo selection view will show the most recent images at the bottom.

蘑菇王子 2024-10-05 01:59:16

无法以这种方式自定义 UIImagePickerController,但从 iOS 4.0 开始,您基本上可以使用 AssetsLibrary 框架

There is no way to customize UIImagePickerController in this way, but as of iOS 4.0, you can basically build your own image picker in any way you like using the AssetsLibrary framework.

小巷里的女流氓 2024-10-05 01:59:16

您可以使用 arry 中的 ALAsset 获取图像,然后可以根据需要对它们进行排序,并在表视图或集合视图中使用来构建您自己的自定义相册

You can get images, using ALAsset in an arry, and then can sort them as you want and use in table view or collectionview to build your own custom album

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