UITableView swipe to delete with no confirmation

前端 未结 2 1942
一整个雨季
一整个雨季 2021-01-20 12:32

Quick question about swipe to delete feature in UITableView - is there a way to just go ahead and delete the row without showing the Delete button and waiting for user\'s co

2条回答
  •  北荒
    北荒 (楼主)
    2021-01-20 13:06

    Implement your custom UITableViewCell and make use of UISwipeGestureRecognizer. You'll have to write all your logic (protocol, delegate etc.) on your own, but you will have it totally customizable.

提交回复
热议问题