简体   繁体   中英

SVPullToRefresh not working with UICollectionView when content height is less than the height

I'm using SVPullToRefresh to enable pull to refresh in UICollectionView . But I find a problem with it. Suppose my collection view size is 320(width) x 300(height) then if content size height of collection view less than the height than the pull to refresh view is not working. Means, when I am trying to drag down (pull down the collection view) it'll not drag the pull area and not even show pull to refresh view.

What can be a work around for this? I tried updating collection view's content size but it doesn't help.

I think setting

self.collectionView.alwaysBounceVertical = YES;

will do the trick.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM