在iOS4中使用UIImagePickerController从照片库中选择时可以从最新的开始吗?

发布于 2024-09-08 02:58:58 字数 107 浏览 3 评论 0原文

有没有办法显示 UIImagePickerController 照片库界面,以便当它出现时,它从库的底部开始,这是 iOS4 中最新图像的位置?显然这就是 3.x 中的工作方式。

谢谢

Is there a way to show the UIImagePickerController photo library interface such that when it comes up it starts at the bottom of the library which is where the newest images are in iOS4? Apparently this is how it worked in 3.x.

Thanks

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

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

发布评论

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

评论(3

爱的故事 2024-09-15 02:58:58

尝试将您的源类型从 SavedPhotoAlbums 更改为 PhotoLibrary:

imagePickerController.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;

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

然而,这增加了一个额外的步骤,因为用户需要在查看照片之前选择一个相册。这适用于相机胶卷,但同步相册仍然在顶部显示照片。

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.

However, this adds an additional step, since users need to select an album before viewing the photos. This works for the Camera Roll, but synced albums still show photos at the top.

万劫不复 2024-09-15 02:58:58

我对 iOS 开发不太熟悉,但查看 @ Apple 的文档: http://developer.apple.com/iphone/library/documentation/uikit/reference/UIImagePickerController_Class/UIImagePickerController/UIImagePickerController.html

我看不出有什么办法可以一次性完成此操作。

您是否尝试在加载图像选择器后简单地向下滚动?或者说这是不可能的?

抱歉,只是提出想法。

干杯,

I'm not too familiar with iOS dev, but looking at the doc for this @ Apple: http://developer.apple.com/iphone/library/documentation/uikit/reference/UIImagePickerController_Class/UIImagePickerController/UIImagePickerController.html

I don't see any way you can do this in one go.

Did you try simply scrolling down after loading the image picker? Or is that not possible?

Sorry, just throwing ideas out there.

Cheers,

请你别敷衍 2024-09-15 02:58:58

结果这里的答案是

Turns out the answer here is no.

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