简体   繁体   English

当在iOS4中使用UIImagePickerController从照片库中进行选择时,您可以先开始w / new吗?

[英]When using the UIImagePickerController in iOS4 to pick from the photo library can you start w/newest first?

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? 有没有一种方法可以显示UIImagePickerController照片库接口,以便在它出现时从库的底部开始,这是iOS4中最新的图像? Apparently this is how it worked in 3.x. 显然,这就是在3.x中的工作方式。

Thanks 谢谢

Try changing your sourceType from SavedPhotoAlbums to PhotoLibrary: 尝试将您的sourceType从SavedPhotoAlbums更改为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. 此功能适用于“相机胶卷”,但同步的相册仍在顶部显示照片。

原来答案是“ 否”

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 我对iOS开发人员不太熟悉,但正在查看有关此@ 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, 干杯,

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM