0

How do i apply UIRefreshControl(or something similar) on every cell of a UICollectionView. I need to invoke an event when cell is swiped to left side and released(if not released but swiped back to its original position, then take no action).

gndp
  • 231
  • 2
  • 12

1 Answers1

1

Apple uses UIScrollView extensively for this kind of thing.

Add a (horizontally scrolling) UIScrollView to the cell. Then make the cell the delegate of it.

Now you can pick up whenever it is scrolled and do something if it scrolls past a certain point.

Fogmeister
  • 76,236
  • 42
  • 207
  • 306