Post

Replies

Boosts

Views

Activity

Reply to How to suppress the prohibition mark (🚫) in UITableView drag-and-drop operations?
I just added these 2 func (that allow to delete row). No more prohibition mark. func tableView(_ tableView: UITableView, commit editingStyle: UITableViewCell.EditingStyle, forRowAt indexPath: IndexPath) { if editingStyle == .delete { // Delete the row from the data source tableView.deleteRows(at: [indexPath], with: .fade) } else if editingStyle == .insert { // Create a new instance of the appropriate class, insert it into the array, and add a new row to the table view } } func tableView(_ tableView: UITableView, moveRowAt fromIndexPath: IndexPath, to: IndexPath) { }
Topic: UI Frameworks SubTopic: UIKit Tags:
Jan ’25