Top Banner
泉哥 github技术博客,成在于积累。 Blog About 500px技术周报008 概览 APP的相册界有两个问题:1airdrop传过来的照没有在最前 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 }
4

500px技术周报008quangelab.com/images/test-pdf.pdf · 2019-11-11 · Text Color Shadow Color Target Action Image Shadow Offset On Highlight When Disabled Line Break Content Insets

Jul 19, 2020

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
  • 泉哥github技术博客,成⻓长在于积累。

    Blog About

    500px技术周报008

    概览

    ⽬目前APP的相册界⾯面有两个问题:1、airdrop传过来的照⽚片没有在最前⾯面 2、照⽚片在上万张的情况下容易易闪退。

    问题描述

    代码中使⽤用creationDate排序,如果不不使⽤用creationDate排序则是倒序,最早的在前⾯面

    解决⽅方案

    去掉代码中使⽤用creationDate排序

    那么在微信和QQ是如何来实现的?请看下图

    self.fetchOptions = [PHFetchOptions new];self.fetchOptions.predicate = [NSPredicate predicateWithFormatself.fetchOptions.sortDescriptors = @[[NSSortDescriptor sortDescriptorWithKey

    - (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView PHAsset *asset = self.assetFetchResults[self.assetFetchResults}

    http://quangelab.com/http://quangelab.com/http://quangelab.com/http://quangelab.com/about

  • 可以看到都是使⽤用uitableview,每个cell⾥里里有四个等⽐比例例图,默认进⼊入到列列表的最下

  • ⾯面。

    微博和图⾍虫

  • 两者都使⽤用的是uicollectionview,默认进⼊入列列表的最上端

    Written on November 17, 2017

    http://github.com/QuanGe