// This function is called when sliding on the cell-(void) tableview :( uitableview *) tableview commiteditingstyle :( uitableviewcelleditingstyle) editingstyle forrowatindexpath :( nsindexpath *) indexpath {nslog (@ "Click favorites to start adding to Favorites"); nsuinteger ROW = [indexpath row]; nsdictionary * rowdata = [itemarray objectatindex: Row]; nslog (@ "the name of the road section to be added to favorites is: % @", [[nsstring alloc] initwithformat: @ "% @", [rowdata objectforkey: @ "road_name"]);}/* at this time, the delete button is delete. to display it as "delete" Chinese, you need to implement-(nsstring *) in uitableviewdelegate *) tableview :( uitableview *) tableview metadata :( nsindexpath *) indexpath Method */-(nsstring *) tableview :( uitableview *) tableview metadata :( nsindexpath *) indexpath {return @ "";}
Article http://code.eoe.cn/476.html