UITableView проведите пальцем удалить нижнюю строку удалить - PullRequest
1 голос
/ 23 октября 2019

Я хочу удалить нижнюю строку. См. Изображение ниже

enter image description here

У меня есть простой код для swipe удаления и UIView в uitableview

func tableView(_ tableView: UITableView, canEditRowAt indexPath: IndexPath) -> Bool {
        return true
    }
    func tableView(_ tableView: UITableView, commit editingStyle: UITableViewCell.EditingStyle, forRowAt indexPath: IndexPath) {
        if (editingStyle == .delete) {
            // handle delete (by removing the data from your array and updating the tableview)
        }
    }
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...