UITableView Swipe to uninstall: how to configure button and action?

I want to perform different actions, not delete objects, but archive them. When the user views the tableViewCell, I need to show the "Archive" instead of deleting it. change the text and color of the Delete button to something else.

How to customize the "Delete Mode" appearance?

+6
objective-c iphone uitableview
source share
1 answer

Apparently, in version 3.0 and above there is such a method:

- (NSString *)tableView:(UITableView *)tableView titleForDeleteConfirmationButtonForRowAtIndexPath:(NSIndexPath *)indexPath __OSX_AVAILABLE_STARTING(__MAC_NA,__IPHONE_3_0); 
+26
source share

All Articles