1. You can delete a row in TableView by using the Uitableviewdelegate method
Swipe to delete
-(void) TableView: (uitableview *) TableView Commiteditingstyle: (uitableviewcelleditingstyle) Editingstyle Forrowatindexpath: (nsindexpath *) indexpath
{
Nsuinteger row = [Indexpath row];
[bookInforemoveobjectatindex: Row];//bookinfo is the array displayed in the current table
[TableView deleterowsatindexpaths: [nsarrayarraywithobject: indexpath]withrowanimation: Uitableviewrowanimationleft];
}
At this point the Delete button is delete, if you want to display as "delete" in Chinese, you need to implement Uitableviewdelegate-(NSString *) TableView: (UITableView *) TableView Titlefordeleteconfirmationbuttonforrowatindexpath: (Nsindexpath *) Indexpath Square
[plain] view plaincopy
- - (nsstring *) TableView: (uitableview *) tableview Titlefordeleteconfirmationbuttonforrowatindexpath: (nsindexpath *) indexpath{
- }    
Or, in the simplest way, change the localization native development region in plist to China
2. This just lets the default delete button to display the Chinese delete button only, if want to change this delete button to other picture form, how to do?
[CPP] view Plaincopy
- -(uitableviewcell *) TableView: (uitableview *) tableview Cellforrowatindexpath: (nsindexpath *) indexpath
- Static;
- If< Span style= "border-width:initial; border-color:initial; Color:black; Cell = [[[uitableviewcell alloc] initwithframe:cgrectzero reuseidentifier: Rootviewcontrollercell]autorelease]; Border-style:none; padding:0px; margin:0px; " >
- ForIfClassReturnvoidForIfbreak}
Delete button on custom UITableViewCell