Can you add the springy cells effect when scrolling (like in the Messages app on iOS7) to an UITableView? I've seen examples of it working on an UICollectionView, but absolutely nothing for table views.
Is it just not possible and I should change every table view to a collection view and redo all the cells?
Unfortunately, no.
Every
UICollectionViewhas a layout object (aUICollectionViewLayoutsubclass) that describes where each cell should go in the collection view's scroll view and which cells are visible in a given CGRect.UITableViewdoesn't have this, so it would be much harder to do anything that manipulates the position of its cells.In addition to animating
UIViewobjects, UIKit Dynamics can be used to animateUICollectionViewLayoutAttributesdirectly, which is necessary for aUITableVieworUICollectionViewstyle class that has reusable cells that may not all be on screen, but which would still be part of theUIDynamicAnimator's "physics".UIDynamicAnimatormethods such aslayoutAttributesForCellAtIndexPath:can then be used to populate your layout object.There being no equivalent layout object for a
UITableView, and no equivalentUIDynamicAnimatorcode to operate on off-screenUITableViewcells, it's likely to be much easier for you to switch to aUICollectionViewif you want this behaviour.