UICollectionView 连续插入分区刷新问题

11Pro 以下手机

                if self.arrDataSource.count > 1 {
                    var insertIndexPathMap = [IndexPath]()
                    let section = self.arrDataSource.count - 1
                    for index in 0..

11Pro 以上手机必须加入 真他妈的坑

                    self.collectionView.layoutIfNeeded()
                if self.arrDataSource.count > 1 {
                    var insertIndexPathMap = [IndexPath]()
                    let section = self.arrDataSource.count - 1
                    for index in 0..

你可能感兴趣的:(UICollectionView 连续插入分区刷新问题)