What I want to get is the same behaviour that this scroll view has:
Simple solution, works like App Store, with velocity or without it. kCellBaseWidth
— width of cell.
- (void)scrollViewWillEndDragging:(UIScrollView *)scrollView
withVelocity:(CGPoint)velocity
targetContentOffset:(inout CGPoint *)targetContentOffset
{
NSInteger index = lrint(targetContentOffset->x/kCellBaseWidth);
targetContentOffset->x = index * kCellBaseWidth;
}