Using long press gesture to reorder cells in tableview?

前端 未结 6 546
灰色年华
灰色年华 2021-02-04 03:35

I want to be able to reorder tableview cells using a longPress gesture (not with the standard reorder controls). After the longPress is recognized I want the tableView to essent

6条回答
  •  走了就别回头了
    2021-02-04 03:54

    Sure there's a way. Call the method, setEditing:animated:, in your gesture recognizer code, that will put the table view into edit mode. Look up "Managing the Reordering of Rows" in the apple docs to get more information on moving rows.

提交回复
热议问题