How to change the default delete button in a table view cell in Swift?
问题 I want to implement this code in Swift. I got the following code for it in Objective-C from these questions: Change the color of default red color delete button in UITableViewCell when swiping rows or click on edit button Customize the delete button in UITableView - (void)willTransitionToState:(UITableViewCellStateMask)state{ [super willTransitionToState:state]; if ((state & UITableViewCellStateShowingDeleteConfirmationMask) == UITableViewCellStateShowingDeleteConfirmationMask) { for (UIView