Is it possible to use iOS 11 Drag and Drop to reorder multiple items/cells at a time in UITableView?

后端 未结 3 1359
借酒劲吻你
借酒劲吻你 2021-01-05 05:45

I know it\'s possible to reorder a single item/cell at a time when using the new UITableViewDropDelegate and UITableViewDragDelegate delegates but

3条回答
  •  离开以前
    2021-01-05 06:41

    I've tried the same with UICollectionView, then I found this:
    link to tweet posted by Tyler Fox who was an active participant in the drag & drop development and you can also see him in the 2017-2018 WWDC videos related to the topic.

    Tweet's content:

    Table and collection view doesn’t support UI for multi-item reordering, it’s quite tricky to implement correctly.
    You can use an intent of .unspecified and provide your own UI for it during the session though, and the drop will be accepted.
    Please file an enhancement request if you'd like to see it supported with API. Any details on your specific use case are appreciated!

提交回复
热议问题