UICollectionView effective drag and drop

前端 未结 5 1967
半阙折子戏
半阙折子戏 2021-01-29 17:56

I am currently trying to implement the UITableView reordering behavior using UICollectionView.

Let\'s call a UItableView TV and a UICollectionVi

5条回答
  •  没有蜡笔的小新
    2021-01-29 18:36

    This might help

    https://github.com/lxcid/LXReorderableCollectionViewFlowLayout

    This is extends the UICollectionView to allow each of the UICollectionViewCells to be rearranged manually by the user with a long touch (aka touch-and-hold). The user can drag the Cell to any other position in the collection and the other cells will reorder automatically. Thanks go to lxcid for this.

提交回复
热议问题