Interception in the delete control panel in a UITableView

I want to intercept the taps on the circular delete control ( an example of the delete control button ) on my TableView to find out when the β€œDelete” button comes in, and I can change the location of the cells. Can someone help me? thanks a lot!

+1
source share
1 answer

You can handle the appearance of the Delete button if you subclass UITableViewCell and override the -willTransitionToState and / or -didTransitionToState there. How:

 - (void)willTransitionToState:(UITableViewCellStateMask)state{ if (state & UITableViewCellStateShowingDeleteConfirmationMask) // Delete button will appear } 
+3
source

Source: https://habr.com/ru/post/1304176/


All Articles