简体   繁体   English

ALAssets库显示的相册顺序

[英]Order of photo albums displayed by ALAssets library

I am using the ALAssets library to build a custom image picker controller (much like in the photos app). 我正在使用ALAssets库来构建自定义图像选择器控制器(很像照片应用程序)。 Specifically I'm using enumerateGroupsWithTypes to populate a list of albums so I can put them in a table. 具体来说,我使用enumerateGroupsWithTypes来填充专辑列表,以便我可以将它们放在一个表中。 I'm noticing when using this method, it populates the list in reverse order as the photos app so the albums are displayed reversed. 我注意到在使用这种方法时,它会以相反的顺序填充列表作为照片应用程序,因此相册会反向显示。 For example: 例如:

The photos app displays the albums this way: 照片应用以这种方式显示相册: 在此输入图像描述

My app displays the albums this way: 我的应用程序以这种方式显示相册: 在此输入图像描述

Obvious solution is for me to just add the albums to the front of my array instead of the back, however I wanted to know if this is the usual behavior or if this is a bug? 明显的解决方案是我只需将相册添加到我的阵列的前面而不是后面,但是我想知道这是否是通常的行为或者这是一个错误? "Test Row" and "Test Row 2" I created using the new option in ios5 that lets you create your own album in the photos app, but I wonder if you add albums through other ways (like through iPhoto which I'm unsure how to do), are they ordered correctly? “测试行”和“测试行2”我使用ios5中的新选项创建,可让您在照片应用中创建自己的相册,但我想知道您是否通过其他方式添加相册(例如通过iPhoto,我不确定如何要做的,他们是否正确订购? Has anyone come across this? 有人遇到过这个吗?

似乎无法更改AssetsLibrary框架返回调用者ALAssetsGroup

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

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