iOS一个关于TableViewCell的问题

新手上路,请多包涵

有什么办法能让第二个Section中的后三个TableViewCell的位置始终固定在最后,不会受其他Cell拖拽的影响呢?
image

阅读 1.3k
1 个回答
✓ 已被采纳新手上路,请多包涵

已经自行解决,使用func tableView(_ tableView: UITableView, targetIndexPathForMoveFromRowAt sourceIndexPath: IndexPath, toProposedIndexPath proposedDestinationIndexPath: IndexPath) -> IndexPath处理即可

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题