泉哥 github技术博客,成在于积累。 Blog About 500px技术周报008 概览 前APP的相册界有两个问题:1、airdrop传过来的照没有在最前 2、照在上 万张的情况下容闪退。 问题描述 代码中使creationDate排序,如果使creationDate排序则是倒序,最早的在前 解决案 去掉代码中使creationDate排序 那么在微信和QQ是如何来实现的?请看下图 self.fetchOptions = [PHFetchOptions new]; self.fetchOptions.predicate = [NSPredicate predicateWithFormat self.fetchOptions.sortDescriptors = @[[NSSortDescriptor sortDe - (UICollectionViewCell *)collectionView:(UICollectionView *)c PHAsset *asset = self.assetFetchResults[self.assetFetc }