UIRefreshControl on UICollectionView only works if the collection fills the height of the container

前端 未结 7 1287
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-02 05:35

I\'m trying to add a UIRefreshControl to a UICollectionView, but the problem is that the refresh control does not appear unless the collection view

7条回答
  •  失恋的感觉
    2020-12-02 05:49

    I'm calling beginRefreshing() right after viewDidLoad(), but on some screens it doesn't work. And only collectionView.layoutIfNeeded() in viewDidLoad() helped me

提交回复
热议问题