1. Settings can be edited
-(BOOL) TableView: (UITableView *) TableView Caneditrowatindexpath: (Nsindexpath *) indexpath{
return YES;
}-(Uitableviewcelleditingstyle) TableView: (UITableView *) TableView Editingstyleforrowatindexpath: (Nsindexpath *) Indexpath
{
return uitableviewcelleditingstyledelete; When this value is returned, the cell responds by displaying the delete}//2. Delete button click
-(void) TableView: (UITableView *) TableView Commiteditingstyle: (uitableviewcelleditingstyle) Editingstyle Forrowatindexpath: (Nsindexpath *) indexpath{
if (Editingstyle = = Uitableviewcelleditingstyledelete) {
Qdlog (@ "123");
}}//Set this line of code to display the kanji "Delete"
-(NSString *) TableView: (UITableView *) TableView Titlefordeleteconfirmationbuttonforrowatindexpath: (Nsindexpath *) Indexpath
{
return @ "Delete";
}
TableView Sliding Delete