the behavior of the UICollectionViewFlowLayout is not defined, because the cell width is greater than collectionView width

后端 未结 20 2164
温柔的废话
温柔的废话 2020-12-01 01:53

2015-08-18 16:07:51.523 Example[16070:269647] the behavior of the UICollectionViewFlowLayout is not defined because: 2015-08-18 16:07:51.523
Example

20条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-01 02:26

    Any Changes in UIView must be done from main thread. Put your code of collectionView addition to views hierarchy into:

    DispatchQueue.main.async {
        ...  
    }
    

提交回复
热议问题