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

前端 未结 7 1286
爱一瞬间的悲伤
爱一瞬间的悲伤 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 06:08

    I too was facing the same issue, I was not able to use the UIRefreshControl until the UICollectionView's content size was large enough to scroll vertically,

    Setting the bounces property of UICollectionView solved this

    [self.collectionView setBounces:YES];
    [self.collectionView setAlwaysBounceVertical:YES];
    
    0 讨论(0)
提交回复
热议问题