samvermette / SVPullToRefresh

Give pull-to-refresh & infinite scrolling to any UIScrollView with 1 line of code.
http://samvermette.com/314
MIT License
4.82k stars 1.09k forks source link

UICollectionView not showing pull to refresh #229

Closed hemangshah closed 9 years ago

hemangshah commented 9 years ago

UICollectionView not showing pull to refresh if content size height is lesser than the collection view height. What to do with this?

chrise86 commented 9 years ago

I think I'm having the same problem, in an empty UICollectionView, the pull to refresh controls do not work. Did you manage to solve it?

hemangshah commented 9 years ago

@chrise86, The good news is that its working for me now :)

Please try with

CollectionView.alwaysBounceVertical = YES;

chrise86 commented 9 years ago

Seems to do the trick!

chrise86 commented 9 years ago

Actually, collectionView.alwaysBounceVertical = YES; did not fix it... any other ideas?

chinabshah commented 9 years ago

Not working for me either!

easonoutlook commented 8 years ago

add this code to viewDidLoad resolved this!

if ([self respondsToSelector:@selector(edgesForExtendedLayout)]){ self.edgesForExtendedLayout = UIRectEdgeNone; }

caojianhua commented 6 years ago

@hemangshah thx, its working for me