Is there a way to get the timing when EditButtonitem in UITableView is pressed by a delivery method?

Asked 2 years ago, Updated 2 years ago, 132 views

When EditButtonitem in UITableView is pressed
Is there a way to get it by using the delivery method?

When UITableView enters edit mode,
I want to disable other BarButtonItems

Thank you for your cooperation.

swift uikit

2022-09-30 21:12

1 Answers

UITableView does not have the editButtonItem property, so we assume you are talking about the UITableViewController, but in this case, from UITableViewController Class Reference

It implements the superclass method setEditing: animated: so if a user tapes an Edit | Done button in the navigation bar, the controller toggle the edit mode of the table.

setEditing(_:animated:) can be overridden.


2022-09-30 21:12

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.